Skip to content

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Jan 6, 2026

Summary

When a DevTools instance is filtered, we're using an unfiltered parent that's still in the reconciling Suspense boundary to attach async info to. If we attach async info to a DEvTools instance of a Suspense boundary, we treat that async info as if it's triggering the fallback of that Suspense boundary.

However, if we're inside the fallback, async info is not triggering the fallback of the nearest Suspense boundary but its parent.

Now we're using the parent of the Suspense boundary to attach async info to if that's not actually the Suspense boundary we're reconciling against (which should only happen if we're reconciling the fallback). We should always have a parent of a DevTools instance associated with a Suspense boundary if we're reconciling the fallback. The only DevTools instance associated with a Suspense boundary without a parent is the Host root. But a host root doesn't have a fallback so we can ignore that case.

How did you test this change?

@meta-cla meta-cla bot added the CLA Signed label Jan 6, 2026
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jan 6, 2026
@eps1lon eps1lon changed the title Current behavior [DevTools] Attach async info in filtered fallback to parent of Suspense Jan 6, 2026
@eps1lon eps1lon requested review from hoxyq and sebmarkbage January 6, 2026 17:07
@eps1lon eps1lon marked this pull request as ready for review January 6, 2026 17:07
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.

3 participants