Repository navigation
Commit 5c50f35
committed
fix(ssr): include FALLBACK_HOIST_DEPTH in ambient snapshot
saveAmbient/restoreAmbient capture every process-wide SSR global so that
nested renderToString/prerender calls cannot leak state into an outer pass.
FALLBACK_HOIST_DEPTH was introduced for transitive fallback suppression but
omitted from the snapshot, so a nested render starting inside a pending arm
would zero the counter and leave it zeroed on return — causing later
fallback hoistables to land permanently in the streamed head.
Add the counter to the Ambient interface, save it, and restore it.1 parent 4afa283 commit 5c50f35
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5499 | 5499 | | |
5500 | 5500 | | |
5501 | 5501 | | |
| 5502 | + | |
5502 | 5503 | | |
5503 | 5504 | | |
5504 | 5505 | | |
| |||
5526 | 5527 | | |
5527 | 5528 | | |
5528 | 5529 | | |
| 5530 | + | |
5529 | 5531 | | |
5530 | 5532 | | |
5531 | 5533 | | |
| |||
5554 | 5556 | | |
5555 | 5557 | | |
5556 | 5558 | | |
| 5559 | + | |
5557 | 5560 | | |
5558 | 5561 | | |
5559 | 5562 | | |
| |||
0 commit comments