react
react copied to clipboard
[Transition Tracing] Transition Tracing For Offscreen Trees
This PR implements transition tracing for offscreen trees. Specifically, it:
- Schedules a Passive effect on Offscreen fibers that went from visible to hidden
- Add a
removeSuspenseBoundaryFromSubtree
function that iterates through the Offscreen subtree removes the all suspense boundaries in the hidden offscreen subtree from their parent tracing markers - Only run this code for an actual Offscreen component (rather than a suspense component)