dillon1000/react
Commit
Browse files [react-devtools-facade] add host instance component lookup (#36820)
Adds a new tool to the Facade, where the input is the `HostInstance` and the output is the corresponding component payload for the `HostFiber` of this `HostInstance`. Supports multiple Host objects from Fiber: `HostComponent`, `HostText`, `HostSingleton`, `HostHoistable`. > [!NOTE] > This doesn't bring much value now, because this returns the payload for the corresponding HostFiber, not the closest user-defined Fiber. This will be improved by adding a parentUid reference to the element payload, so the agent can crawl up through the component tree.
Changed paths3 files
First-parent comparisonpackages/react-devtools-facade/src/DevToolsFacadeTools.js ModifiedM packages/react-devtools-facade/src/DevToolsFacadeTreeTools.js ModifiedM packages/react-devtools-facade/src/__tests__/DevToolsFacade-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…