Commit 34ce3ac
authored
[DevTools] Pick up suspended by info from React.lazy in type position (#34144)
Normally, we pick up debug info from instrumented Promise or React.Lazy
while we're reconciling in ReactChildFiber when they appear in the child
position. We add those to the `_debugInfo` of the Fiber.
However, we don't do that for for Lazy in the Component type position.
Instead, we have to pick up the debug info from it explicitly in
DevTools. Likely this is the info added by #34137. Older versions
wouldn't be covered by this particular mechanism but more generally from
throwing a Promise.
<img width="592" height="449" alt="Screenshot 2025-08-08 at 11 32 33 PM"
src="https://github.com/user-attachments/assets/87211c64-a7df-47b7-a784-5cdc7c5fae16"
/>1 parent 6445b31 commit 34ce3ac
File tree
1 file changed
+24
-0
lines changed1 file changed
+24
-0
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
3161 | 3162 | | |
3162 | 3163 | | |
3163 | 3164 | | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
3164 | 3184 | | |
3165 | 3185 | | |
3166 | 3186 | | |
| |||
3379 | 3399 | | |
3380 | 3400 | | |
3381 | 3401 | | |
| 3402 | + | |
| 3403 | + | |
3382 | 3404 | | |
3383 | 3405 | | |
3384 | 3406 | | |
| |||
4208 | 4230 | | |
4209 | 4231 | | |
4210 | 4232 | | |
| 4233 | + | |
| 4234 | + | |
4211 | 4235 | | |
4212 | 4236 | | |
4213 | 4237 | | |
| |||
0 commit comments