Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Aug 20, 2025

Stacked on #34233

There's more to consider with multi-root apps in the Suspense timeline.
This is specifically concerned with looking at production roots which won't have an toggleable Suspense at the moment.

This sends an additional value when adding a root over the bridge indicating whether this root supports toggling suspense. We didn't needed it previously since we just send that capability along with the inspected element. For the timeline we don't want to wait for the inspected element though.

@meta-cla meta-cla bot added the CLA Signed label Aug 20, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Aug 20, 2025
@eps1lon eps1lon force-pushed the sebbie/08-20-_devtools_exclude_roots_from_timeline_that_can_t_toggle_suspense branch from d8fa742 to 9e1ff6a Compare August 20, 2025 18:16
@eps1lon eps1lon requested review from hoxyq and sebmarkbage August 21, 2025 15:25
@eps1lon eps1lon marked this pull request as ready for review August 21, 2025 15:25
@@ -2366,6 +2366,7 @@ export function attach(
!isProductionBuildOfRenderer && StrictModeBits !== 0 ? 1 : 0,
);
pushOperation(hasOwnerMetadata ? 1 : 0);
pushOperation(supportsTogglingSuspense ? 1 : 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change in bridge logic between backend and frontend.

Could you please bump a version of bridge?

// Bump protocol version whenever a backwards breaking change is made

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5584209 (#34239) should do it? Maybe we just do a SemVer major for -inline for safety?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also affects React DevTools for React Native, because we ship backend and frontend separately.

Maybe we just do a SemVer major for -inline for safety?

Yeah, we will do it, but this won't help for cases where backend and frontend are used separately.

@eps1lon eps1lon force-pushed the sebbie/08-20-_devtools_exclude_roots_from_timeline_that_can_t_toggle_suspense branch 3 times, most recently from 0d6dd75 to 5584209 Compare August 25, 2025 17:15
@eps1lon eps1lon requested a review from hoxyq August 25, 2025 17:17
There's more to consider with multi-root apps.
This is specifically concerned with looking at production
roots which won't have an toggleable Suspense at the
moment.
@eps1lon eps1lon force-pushed the sebbie/08-20-_devtools_exclude_roots_from_timeline_that_can_t_toggle_suspense branch from 5584209 to 4aaa3f9 Compare August 26, 2025 15:16
@eps1lon
Copy link
Collaborator Author

eps1lon commented Aug 26, 2025

Landed in #34251 (by accident)

@eps1lon eps1lon closed this Aug 26, 2025
@eps1lon eps1lon deleted the sebbie/08-20-_devtools_exclude_roots_from_timeline_that_can_t_toggle_suspense branch August 26, 2025 15:23
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