Commit 09c06e3
committed
fix(router): forward streamed Suspense resolvers on same-layout nav
Streamed Suspense templates (<template data-webjs-resolve="...">) are
emitted at body level, AFTER the </div> that closes the data-layout
wrapper. During same-layout navigation the router swaps only the
<main> contents inside the wrapper, so those resolvers were dropped
and the fallback stayed frozen ("computing timestamp…" forever).
Forward them explicitly: after the swap, query the fetched body for
template[data-webjs-resolve] and append clones onto the live body.
The suspense boot's MutationObserver picks them up automatically.1 parent 4915290 commit 09c06e3
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
437 | 456 | | |
438 | 457 | | |
439 | 458 | | |
| |||
0 commit comments