Skip to content

[DevTools] Ignore child adds after parent removal#36472

Open
yudin-s wants to merge 1 commit into
facebook:mainfrom
yudin-s:fix-devtools-missing-parent-node
Open

[DevTools] Ignore child adds after parent removal#36472
yudin-s wants to merge 1 commit into
facebook:mainfrom
yudin-s:fix-devtools-missing-parent-node

Conversation

@yudin-s
Copy link
Copy Markdown

@yudin-s yudin-s commented May 14, 2026

Summary

Fixes #36048.

When a bridge update removes a parent and then includes an add operation for a child of that removed parent, the DevTools Store currently throws because the parent is no longer present. This skips only the add operation whose parent was removed earlier in the same bridge update while preserving the existing missing-parent error for other malformed updates.

How did you test this change?

  • yarn build-for-devtools-dev
  • yarn test --build --project devtools packages/react-devtools-shared/src/tests/store-test.js --runInBand

@meta-cla meta-cla Bot added the CLA Signed label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DevTools Bug] Cannot add child "3843" to parent "316" because parent node was not found in the Store.

1 participant