You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DevTools] Console logging and StrictMode double rendering #21889
Unfortunately this often causes confusion and leads to complaints (see the discussion on #21783). We could leverage DevTools to improve the default experience and give developers control over this behavior.
Disable console suppression by default in React.
Add an API for DevTools and React to communicate about when double rendering (or lifecycles) start and stop.
DevTools should gray out (but not hide) logs during second render pass by default.
DevTools should expose a new Debugging preference that allows users to suppress second logs entirely (mimicking the current default behavior).
I would like to work on this. If nobody is working on this. I can start working on exposing new debugging preferences as mentioned above. Could you please clarify the second point about adding an API for DevTools and React to communicate.
Activity
md-ziauddin commentedon Aug 3, 2021
I would like to work on this. If nobody is working on this. I can start working on exposing new debugging preferences as mentioned above. Could you please clarify the second point about adding an API for DevTools and React to communicate.
@bvaughn
bvaughn commentedon Aug 3, 2021
Thanks for the offer, @ziauddin-copods, but Luna Ruan is working on this task. (It's assigned to her.)