dillon1000/react

Commit

refactor[devtools]: highlight an array of elements for native (#27734)

We are currently just pass the first element, which diverges from the
implementation for web. This is especially bad if you are inspecting
something like a list, where host fiber can represent multiple elements.

This part runs on the backend of React DevTools, so it should not affect
cases for React Native when frontend version can be more up-to-date than
backend's. I will double-check it before merging.

Once version of `react-devtools-core` is updated in React Native, this
should be supported, I will work on that later.
Browse files
Changed paths3 files
First-parent comparison
M packages/react-devtools-shared/src/backend/utils.js ModifiedM packages/react-devtools-shared/src/backend/views/Highlighter/Highlighter.js ModifiedM packages/react-devtools-shared/src/backend/views/TraceUpdates/canvas.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…