Repository navigation
Commit 8f4a0eb
committed
fix: preserve head statement source order across SSR partition boundary
The SSR head partition independently classified each hoisted head
statement as front (capture-free) or deferred (captures a setup local).
When a component mixed static and setup-local head resources like
[free, capture, free], the second free statement was reordered ahead of
the capturing one, breaking discovery order versus the client path which
emits all resources in list order after setup.
Fix: once the first capturing statement is encountered, all subsequent
statements are also deferred, preserving their relative source order.
This matches the client's sequential registration and keeps CSS cascade
order consistent between SSR and client mounts.1 parent f0b5392 commit 8f4a0eb
3 files changed
Lines changed: 37 additions & 6 deletions
File tree
- packages/octane
- src/compiler
- tests
- _fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9783 | 9783 | | |
9784 | 9784 | | |
9785 | 9785 | | |
| 9786 | + | |
9786 | 9787 | | |
9787 | | - | |
9788 | | - | |
9789 | | - | |
9790 | | - | |
9791 | | - | |
| 9788 | + | |
| 9789 | + | |
| 9790 | + | |
| 9791 | + | |
| 9792 | + | |
| 9793 | + | |
9792 | 9794 | | |
9793 | 9795 | | |
9794 | | - | |
| 9796 | + | |
9795 | 9797 | | |
9796 | 9798 | | |
9797 | 9799 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
87 | 100 | | |
88 | 101 | | |
89 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
616 | 632 | | |
617 | 633 | | |
618 | 634 | | |
| |||
0 commit comments