-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add option to render stories in React.StrictMode #12734
Comments
@oliviertassinari this should be an easy one and worthwhile. PRs welcome and if nothing comes in I'll try to make sure it happens for 6.1. |
Hey @shilman I would like to give it a shot. |
@imshubhamsingh ok I'm thinking we should add it as an option to module.exports = {
reactOptions: {
strictMode: true,
}
} Like we do for Is that enough to get you started? |
yeah. This will help. Thanks ✌️, If I have any doubt I'll reach out here or on discord server. |
@imshubhamsingh ohhh I'm so sorry I didn't saw your messages in this issue.. |
@tooppaaa no worries. I would request you sincerely that you don't repeat such mistake with others. People put in a lot of effort and time understanding the issue and try to solve it (as you would also have). |
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.25 containing PR #12781 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Apologies @imshubhamsingh ! |
Great :) |
Son of a gun!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.27 containing PR #12810 that references this issue. Upgrade today to the
|
Gadzooks!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0 containing PR #12781 that references this issue. Upgrade today to the
|
Is your feature request related to a problem? Please describe
I would like to render all my stories in strict mode, to anticipate this mode becoming the default in React.
Describe the solution you'd like
I have noticed the global env
XSTORYBOOK_EXAMPLE_APP
but it seems to be private. It's not documented.Describe alternatives you've considered
Next.js offers interesting options: https://nextjs.org/docs/api-reference/next.config.js/react-strict-mode.
Additional context
StrictMode is enabled by default in Create React App. I'm opening the issue because we go a bug reported linked to our workflow where we don't have StrictMode enabled.
The text was updated successfully, but these errors were encountered: