dillon1000/react

Commit

fix[DevTools/Tree]: only scroll to item when panel is visible (#32018)

Stacked on https://github.com/facebook/react/pull/31968. See commit on
top.

Fixes an issue with bank tree view, when we are scrolling to an item
while syncing user DOM selection. This should only have an effect on
browser extension. Added events with `extension` prefix will only be
emitted in browser extension implementation, for other implementations
`useExtensionComponentsPanelVisibility` will return constant `true`
value.

Before:


https://github.com/user-attachments/assets/82667c16-d495-4346-af0a-7ed22ff89cfc


After:


https://github.com/user-attachments/assets/a5d223fd-0328-44f0-af68-5c3863f1efee
Browse files
Changed paths4 files
First-parent comparison
M packages/react-devtools-extensions/src/main/index.js ModifiedM packages/react-devtools-shared/src/bridge.js ModifiedM packages/react-devtools-shared/src/devtools/views/Components/Tree.js ModifiedA packages/react-devtools-shared/src/frontend/hooks/useExtensionComponentsPanelVisibility.js Added
Patch

Files changed

Rendering syntax-highlighted changes…