Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Sep 23, 2025

This is mostly for React 17 which uses LegacyHiddenComponent instead of Offscreen for the content Fiber. Though it's nice that support for enableLegacyHidden comes with it.

How did you test this change?

$ node ./scripts/ci/download_devtools_regression_build.js 17.0 --replaceBuild
$ node ./scripts/jest/jest-cli.js --build --project devtools --release-channel=experimental --reactVersion 17.0

@meta-cla meta-cla bot added the CLA Signed label Sep 23, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Sep 23, 2025
const commitData = store.profilerStore.getDataForRoot(rootID).commitData;
expect(commitData).toHaveLength(2);

const isLegacySuspense = React.version.startsWith('17');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

17 isn't what we refer to in the Fiber renderer as "legacy Suspense". Legacy Suspense had a Fragment for the content Fiber. 17 is using LegacyHiddenComponent and 18+ is using OffscreenComponent.

@eps1lon eps1lon force-pushed the sebbie/09-23-_devtools_handle_legacyhidden_fibers_like_offscreen_fibers branch from f493a42 to f7e2e5f Compare September 23, 2025 11:58
@eps1lon eps1lon force-pushed the sebbie/09-23-_devtools_handle_legacyhidden_fibers_like_offscreen_fibers branch 2 times, most recently from 8dd516c to daa9aee Compare September 23, 2025 12:38
This is mostly for React 17 which uses `LegacyHiddenComponent`
instead of `Offscreen` for the content Fiber.
@eps1lon eps1lon force-pushed the sebbie/09-23-_devtools_handle_legacyhidden_fibers_like_offscreen_fibers branch from daa9aee to 8cd796b Compare September 23, 2025 12:40
@eps1lon eps1lon marked this pull request as ready for review September 23, 2025 12:41
@eps1lon eps1lon merged commit 012b371 into facebook:main Sep 23, 2025
244 checks passed
@eps1lon eps1lon deleted the sebbie/09-23-_devtools_handle_legacyhidden_fibers_like_offscreen_fibers branch September 23, 2025 18:15
EugeneChoi4 pushed a commit to EugeneChoi4/react that referenced this pull request Sep 24, 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