How do I use store.startConfiguring()
and store.finishConfiguring()
?
#12050
Unanswered
jeremytenjo
asked this question in
Help
Replies: 2 comments 3 replies
-
Those are implementation details, and you probably shouldn't be calling those functions yourself. @tmeasday maybe we should rename those with underscores to ... underscore this point? |
Beta Was this translation helpful? Give feedback.
1 reply
-
For those still wondering how to follow that guidance, I found (by reading source code) that the https://github.com/storybookjs/storybook/blob/master/lib/core/src/client/preview/start.ts#L89 const storyStore = window.__STORYBOOK_STORY_STORE__;
storyStore.startConfiguring();
...
storyStore.finishConfiguring(); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-store-immutable-outside-of-configuration
The docs are not very clear on how to use
store.startConfiguring()
andstore.finishConfiguring()
.Where does
store
come from?Beta Was this translation helpful? Give feedback.
All reactions