dillon1000/react

Commit

[DevTools] Track virtual debug info from suspensey images (#34181)

Same as #34166 but for Suspensey images.

The trick here is to check the `SuspenseyImagesMode` since not all
versions of React and not all subtrees will have Suspensey images
enabled yet.

The other trick is to read back from `currentSrc` to get the image url
we actually resolved to in this case. Similar to how for Suspensey CSS
we check if the media query would've matched.

<img width="591" height="205" alt="Screenshot 2025-08-11 at 9 32 56 PM"
src="https://github.com/user-attachments/assets/ac98785c-d3e0-407c-84e0-c27f86c0ecac"
/>
Browse files
Changed paths2 files
First-parent comparison
M packages/react-devtools-shared/src/backend/fiber/renderer.js ModifiedM packages/shared/ReactIODescription.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…