Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Aug 17, 2025

Stacked on #34224

This is reverting #34168 in favor of passing the designated parent to removePreviousSuspendedBy.

We can't just pop the Suspense nodes after we updated the fallback since the fallback might've inserted a new Suspense node i.e. advanced sibling pointers.

We now no longer pop after reconciling Suspense fallbacks. Callers need to know they don't need to pop when they reconciled Suspense children.

@meta-cla meta-cla bot added the CLA Signed label Aug 17, 2025
@eps1lon eps1lon changed the title [DevTools] Always attempt to mount dehydrated roots @eps1lon [DevTools] Handle reorders when resuspending while fallback contains Suspense Aug 17, 2025
@eps1lon eps1lon changed the title @eps1lon [DevTools] Handle reorders when resuspending while fallback contains Suspense [DevTools] Handle reorders when resuspending while fallback contains Suspense Aug 17, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Aug 17, 2025
@eps1lon eps1lon force-pushed the sebbie/08-17-_devtools_handle_reorders_when_resuspending_while_fallback_contains_suspense branch 2 times, most recently from 7a3d4ad to 9c1313b Compare August 18, 2025 11:03
@eps1lon eps1lon marked this pull request as ready for review August 18, 2025 11:09
@eps1lon eps1lon requested review from sebmarkbage and hoxyq August 18, 2025 13:01
@eps1lon eps1lon force-pushed the sebbie/08-17-_devtools_handle_reorders_when_resuspending_while_fallback_contains_suspense branch from 9c1313b to a459ca5 Compare August 19, 2025 14:10
@eps1lon eps1lon merged commit ae5c2f8 into main Aug 19, 2025
241 checks passed
@eps1lon eps1lon deleted the sebbie/08-17-_devtools_handle_reorders_when_resuspending_while_fallback_contains_suspense branch August 19, 2025 18:24
unstubbable pushed a commit to vercel/next.js that referenced this pull request Aug 20, 2025
github-actions bot pushed a commit to code/lib-react that referenced this pull request Aug 23, 2025
github-actions bot pushed a commit to code/lib-react that referenced this pull request Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants