dillon1000/react

Commit

[DevTools] Only show state for ClassComponents (#34091)

The only thing that uses `memoizedState` as a public API is
ClassComponents. Everything else uses it as internals. We shouldn't ever
show those internals.

Before those internals showed up for example on a suspended Suspense
boundary:

<img width="436" height="370" alt="Screenshot 2025-08-03 at 8 13 37 PM"
src="https://github.com/user-attachments/assets/7fe275a7-d5da-421d-a000-523825916630"
/>
Browse files
Changed paths1 file
First-parent comparison
M packages/react-devtools-shared/src/backend/fiber/renderer.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…