dillon1000/react

Commit

[DevTools] Don't show the root as being non-compliant (#34827)

`isStrictModeNonCompliant` on the root just means that it supports
strict mode. It's inherited by other nodes.

It's not possible to opt-in to strict mode on the root itself but rather
right below it. So we should not mark the root as being non-compliant.

This lets you select the root in the suspense tab and it shouldn't show
as red with a warning.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-devtools-shared/src/devtools/views/Components/InspectedElement.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…