Wrap apps in StrictMode in develop #25813
Replies: 8 comments
-
I would add to the list of questions to discuss:
|
Beta Was this translation helpful? Give feedback.
-
✔ Develop mode only, doesn't impact production I think it's an easy go ahead from me! The only negative of incoming bug tickets offsets the same amount when a new React version is released that "breaks things" for the same users. This can also be mitigated with some pinned issues, guidance, etc. I would however disagree with the opt-out switch, out of fear that it's a tempting choice to hide the warnings. If it's released as a minor |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Just commenting to show support! This would be a neat feature! |
Beta Was this translation helpful? Give feedback.
-
Bump bump bump |
Beta Was this translation helpful? Give feedback.
-
Summary
Opening this for discussion. From a recent conversation with @gaearon, he requested that we turn on StrictMode for gatsby users. React has a lot of major changes in the next 1-2 years and StrictMode is the pressure to get the community to update from legacy patterns that will be breaking in future React updates.
Proposal: Gatsby wraps apps in develop mode with
StrictMode
and have a configuration that can disable it. But it would be opt-out.Motivation
Gatsby is an important member of the React ecosystem and we have the opportunity to do "right" by supporting the maintainers and the community to encourage that pressure to transition away from legacy APIs and patterns.
Discussion
I'd like to discuss a few things in this issue:
Beta Was this translation helpful? Give feedback.
All reactions