gnoff's Description of Work
Follow-up to #37850. Extracting the suspended and aborting children into a component still leaves a nested child replay path beneath a Suspense boundary whose whole content was postponed. Resume rerenders that content but then finds the stale child path, reports a replay mismatch, and leaves the fallback visible.
When recording a whole-content replay slot, clear descendant replay paths already tracked and avoid attaching later paths beneath it. The new regression test wraps the children in a component and verifies that both render after resume.
Tests:
- yarn test ReactDOMFizzStatic --runInBand (60 passed)
- yarn test ReactDOMFizzStatic --prod --runInBand (60 passed)
- yarn test ReactDOMFizzSuspenseList --runInBand (13 passed)
- yarn linc
- node scripts/prettier/index.js check-changed
- yarn flow dom-node