dillon1000/react

Commit

Reset stateNode in resetWorkInProgress (#18448)

* test(SuspenseList): Add failing test for class component

* Reset stateNode when resetWorkInProgress

This is supposed to put the Fiber into the same state as if it was just
created by child fiber reconciliation. For newly created fibers, that means
that stateNode is null.

Co-authored-by: Sebastian Silbermann <[email protected]>
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiber.js ModifiedM packages/react-reconciler/src/__tests__/ReactSuspenseList-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…