Skip to content

[DevTools] Only schedule a single update per Supense when changing timeline#35927

Open
eps1lon wants to merge 2 commits intofacebook:mainfrom
eps1lon:sebbie/02-28-_devtools_only_schedule_a_single_update_per_supense_when_changing_timeline
Open

[DevTools] Only schedule a single update per Supense when changing timeline#35927
eps1lon wants to merge 2 commits intofacebook:mainfrom
eps1lon:sebbie/02-28-_devtools_only_schedule_a_single_update_per_supense_when_changing_timeline

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Feb 28, 2026

Changing the Suspense timeline milestone was brute force. We sent the Fiber to each renderer for update. Not only is that wasteful, it can also break React if the Fibers from one renderer were not compatible with another renderer.

E.g. scheduling an update on a Fiber from React canary with React experimental would crash. Instead of pendingIndicator being null | () => {}, React would see undefined since pendingIndicator simply doesn't exist in React canary.

Test plan

Before:

CleanShot.2026-02-28.at.17.02.27.mp4

After:

CleanShot.2026-02-28.at.16.59.45.mp4

@meta-cla meta-cla bot added the CLA Signed label Feb 28, 2026
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Feb 28, 2026
@eps1lon eps1lon requested a review from hoxyq February 28, 2026 16:32
@eps1lon eps1lon marked this pull request as ready for review February 28, 2026 16:32
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.

1 participant