Commit f3a8036
authored
[Flight] Ensure async info owners are outlined properly (#34465)
When we emit objects of type `ReactAsyncInfo`, we need to make sure that
their owners are outlined, using `outlineComponentInfo`. Otherwise we
would end up accidentally emitting stashed fields that are not part of
the transport protocol, specifically `debugStack`, `debugTask`, and
`debugLocation`. This would lead to runtime errors in the client, when
for example, the stack for a `debugLocation` is processed in
`buildFakeCallStack`, but the stack was actually omitted from the RSC
payload, because for those fields we don't ensure that the object limit
is increased by the length of the stack, as we do when we're emitting
the `stack` of a `ReactComponentInfo` object in `outlineComponentInfo`.1 parent fe84397 commit f3a8036
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2384 | 2384 | | |
2385 | 2385 | | |
2386 | 2386 | | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
2387 | 2392 | | |
2388 | 2393 | | |
2389 | 2394 | | |
| |||
5133 | 5138 | | |
5134 | 5139 | | |
5135 | 5140 | | |
| 5141 | + | |
| 5142 | + | |
| 5143 | + | |
| 5144 | + | |
5136 | 5145 | | |
5137 | 5146 | | |
5138 | 5147 | | |
| |||
0 commit comments