Skip to content

[DevTools] Fix crash when revealing stable, filtered <Activity> children#35734

Merged
eps1lon merged 2 commits intofacebook:mainfrom
eps1lon:sebbie/reveal-activity
Feb 9, 2026
Merged

[DevTools] Fix crash when revealing stable, filtered <Activity> children#35734
eps1lon merged 2 commits intofacebook:mainfrom
eps1lon:sebbie/reveal-activity

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Feb 9, 2026

Summary

This aligns the hidden -> visible Activity path with how we treat hidden Activity. Since we don't mount hidden Activity children, we need to switch to the mount path when updating an Activity from hidden to visible.

This mostly went unnoticed since the update that reveals Activity also created fresh children. But for children from props, we continue down the update path and then later crash because children unexpectedly changed.

Originally I added an extra isReconnectingSubtree before realizing the whole transition from hidden to visible wasn't correctly modelled.

How did you test this change?

  • Added test
  • https://flvrxf.csb.app/ no longer crashes (used to crash with The children should not have changed if we pass in the same set.)

@meta-cla meta-cla bot added the CLA Signed label Feb 9, 2026
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Feb 9, 2026
@eps1lon eps1lon requested a review from hoxyq February 9, 2026 20:48
@eps1lon eps1lon marked this pull request as ready for review February 9, 2026 20:48
@eps1lon eps1lon changed the title [DevTools] Fix crash when revealing stable, filtered <Activity> children [DevTools] Fix crash when revealing stable, filtered <Activity> children Feb 9, 2026
@eps1lon eps1lon merged commit 4c9d62d into facebook:main Feb 9, 2026
243 checks passed
@eps1lon eps1lon deleted the sebbie/reveal-activity branch February 9, 2026 21:59
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