Commit 0417546
authored
[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"
/>1 parent 30fca45 commit 0417546
File tree
1 file changed
+2
-2
lines changed1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
973 | 972 | | |
974 | 973 | | |
975 | 974 | | |
| |||
4618 | 4617 | | |
4619 | 4618 | | |
4620 | 4619 | | |
4621 | | - | |
| 4620 | + | |
| 4621 | + | |
4622 | 4622 | | |
4623 | 4623 | | |
4624 | 4624 | | |
| |||
0 commit comments