mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
## Summary When DevTools frontend and backend are connected, we patch console in 2 places: - `patch()`, when renderer is attached to: - listen to any errors / warnings emitted - append component stack if requested by the user - `patchForStrictMode()`, when React notifies about that the next invocation is about to happed during StrictMode `patchForStrictMode()` will always be at the top of the patch stack, because it is called at runtime when React notifies React DevTools, because of this, `patch()` may receive already modified arguments (with stylings for dimming), we should attempt to restore the original arguments ## How did you test this change? Look at yellow warnings on the element view: | Before | After | | --- | --- | |  |  |
This directory contains code shared between several DevTools packages:
- /packages/react-devtools-core
- /packages/react-devtools-extensions
- /packages/react-devtools-inline
It is not published or released anywhere directly.