-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: what are the differences between main.js
, preview.js
, manager.js
?
#9594
Comments
@lidoravitan can you review this PR and add questions as comments there? |
@shilman sure I'm on it! thanks for response |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
What are after all the differences between all these different files??? It's nowhere to be found in the docs. Take "Using addons" for example; the docs say to add something to main.js, then later in a section entitled "global configuration" it says "To do that, you can add your decorators to a config file, typically in .storybook/preview.js.", but nowhere is it explained what "typically" even means. I don't know what I should put in preview.js vs main.js |
cc @ndelangen |
Here's where it's explained, but it's missing in the docs for some reason: |
@shilman do we deploy the docs for next somewhere somehow? |
@ndelangen No because of the whole "frontpage" / "docs" split. I think we need to patch that into I'll do the patch now. Thanks! |
You have it all nicely explained here by @shilman - Migration docs |
Issue
Can't find any documentation about what the difference between
main.js
,preview.js
,manager.js
.when should I use/choose each one? what are their lifecycle (I mean do they load before/after the env)?
The text was updated successfully, but these errors were encountered: