Skip to content
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

DevTools + StrictMode toggles #21367

Closed
bvaughn opened this issue Apr 27, 2021 · 1 comment
Closed

DevTools + StrictMode toggles #21367

bvaughn opened this issue Apr 27, 2021 · 1 comment

Comments

@bvaughn
Copy link
Contributor

bvaughn commented Apr 27, 2021

Current thinking about the StrictMode API is to support multiple levels of strictness (see #20849). React will likely choose a default level for a given release, but level can be overridden for an entire application via an option passed to createRoot or for a subtree (using the <StrictMode level="..."> tag).

DevTools can support iterating on level as well, by showing a list of all possible levels, the recommended default level, and which levels are enabled. Users could toggle these values to temporarily1 override the level used for the root application.

1 Temporary override could be applied for some amount of time (e.g. 1 day or 1 week) and then reset so developers don't forget about the override.

@bvaughn
Copy link
Contributor Author

bvaughn commented Oct 11, 2021

Our thinking around StrictMode has changed since I wrote this, so I'm going to close this issue.

@bvaughn bvaughn closed this as completed Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant