Why there is no addon API to get all stories?
@ZigGreen maybe this API could help you?
https://github.com/storybooks/react-storybook/blob/master/src/client/preview/client_api.js#L85
Yeap, this API meet my needs. But pls tell me how I can use it. Isn't it a private API?
@ZigGreen
here is a brief example how to use it:
import { storiesOf, getStorybook } from '@kadira/storybook';
storiesOf('React App', module)
.add('Story 1', () => <Story1 />)
...
const myStories = getStorybook();
console.log(myStories);
You'll have an array with all you storyKind -> stories ...
Most helpful comment
@ZigGreen
here is a brief example how to use it:
You'll have an array with all you storyKind -> stories ...