Skip to content

Commit

Permalink
docs: add storybookAPI.onStory (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha authored and arunoda committed Oct 25, 2016
1 parent c2ad965 commit ba67366
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/docs/react-storybook/addons/api.js
Expand Up @@ -125,5 +125,13 @@ export default {
~~~js
storybookAPI.getQueryParam('bbc');
~~~
### storybookAPI.onStory(fn)
This method allows you to register a handler function which will be called whenever the user navigates between stories.
~~~js
storybookAPI.onStory((kind, story) => console.log(kind, story));
~~~
`
};

0 comments on commit ba67366

Please sign in to comment.