Repository navigation
Commit 8cdcb58
committed
fix: avoid premature endRoute on live streams and voidRoot with DataRoot wrapper
- production.js: Track the streaming Response from renderRoute. When a
before-middleware throws after next() has returned a live stream, cancel
the stream body (triggering composeHtmlStream's cancel handler for proper
cleanup) instead of calling endRoute directly, which would retire the
data store while renderToReadableStream is still running.
- vite-plugin-octane: Add !config.data to the voidRoot condition in
hydrate_entry_features so a data module's DataRoot wrapper disables
voidRoot, matching the existing rootBoundary guard.1 parent ad05a5f commit 8cdcb58
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
436 | 437 | | |
437 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
438 | 443 | | |
439 | 444 | | |
440 | 445 | | |
441 | 446 | | |
442 | 447 | | |
443 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
444 | 453 | | |
445 | 454 | | |
446 | 455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
456 | 457 | | |
457 | 458 | | |
458 | 459 | | |
| |||
0 commit comments