{"action":"created","issue":{"url":"https://api.github.com/repos/kadirahq/storybook-addons/issues/5","repository_url":"https://api.github.com/repos/kadirahq/storybook-addons","labels_url":"https://api.github.com/repos/kadirahq/storybook-addons/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/storybook-addons/issues/5/comments","events_url":"https://api.github.com/repos/kadirahq/storybook-addons/issues/5/events","html_url":"https://github.com/kadirahq/storybook-addons/issues/5","id":175063054,"number":5,"title":"Addon developers need access to rendered story","user":{"login":"mnmtanish","id":136691,"avatar_url":"https://avatars.githubusercontent.com/u/136691?v=3","gravatar_id":"","url":"https://api.github.com/users/mnmtanish","html_url":"https://github.com/mnmtanish","followers_url":"https://api.github.com/users/mnmtanish/followers","following_url":"https://api.github.com/users/mnmtanish/following{/other_user}","gists_url":"https://api.github.com/users/mnmtanish/gists{/gist_id}","starred_url":"https://api.github.com/users/mnmtanish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnmtanish/subscriptions","organizations_url":"https://api.github.com/users/mnmtanish/orgs","repos_url":"https://api.github.com/users/mnmtanish/repos","events_url":"https://api.github.com/users/mnmtanish/events{/privacy}","received_events_url":"https://api.github.com/users/mnmtanish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-05T12:39:25Z","updated_at":"2016-09-05T12:44:16Z","closed_at":null,"body":"To get real-time data from stories, addon developers need access to the rendered story component. For this to work, developers also need to know when stories change. Both of this can be fixed with an API similar to `onStory` but with the component itself as the third parameter.\r\n\r\nThe component can be many different things according to the UI framework it's used with (React Component for React Storybook, etc.)\r\n\r\nThis issue requires preview side initialisers so https://github.com/kadirahq/storybook-addons/issues/4 should be fixed first."},"comment":{"url":"https://api.github.com/repos/kadirahq/storybook-addons/issues/comments/244738386","html_url":"https://github.com/kadirahq/storybook-addons/issues/5#issuecomment-244738386","issue_url":"https://api.github.com/repos/kadirahq/storybook-addons/issues/5","id":244738386,"user":{"login":"mnmtanish","id":136691,"avatar_url":"https://avatars.githubusercontent.com/u/136691?v=3","gravatar_id":"","url":"https://api.github.com/users/mnmtanish","html_url":"https://github.com/mnmtanish","followers_url":"https://api.github.com/users/mnmtanish/followers","following_url":"https://api.github.com/users/mnmtanish/following{/other_user}","gists_url":"https://api.github.com/users/mnmtanish/gists{/gist_id}","starred_url":"https://api.github.com/users/mnmtanish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnmtanish/subscriptions","organizations_url":"https://api.github.com/users/mnmtanish/orgs","repos_url":"https://api.github.com/users/mnmtanish/repos","events_url":"https://api.github.com/users/mnmtanish/events{/privacy}","received_events_url":"https://api.github.com/users/mnmtanish/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T12:44:16Z","updated_at":"2016-09-05T12:44:16Z","body":"Another option is to allow developers to add global decorators using the `addon` API.\r\n\r\n```js\r\naddons.addDecorator(myDecorator)\r\n```\r\n\r\nStorybook implementations can use these when they render stories."}}
{"actor":{"display_login":"mnmtanish"}}