-
Notifications
You must be signed in to change notification settings - Fork 49.2k
Closed
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
It's noted on the docs pages at https://reactjs.org/docs/strict-mode.html
react-dom currently disables/mutates the global console in strict mode.
This seems to be an intentional feature/bug that's an unnecessary inconvenience.
React version: 17.0.1
Steps To Reproduce
- Use react-dom in strict mode
- Try to log something
The current behavior
logging is disabled in strict-mode
The expected behavior
Possible better solutions:
- Make it more obvious that the console is being mutated/disabled
- Use a proxy
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug