Commit 98f020c
fix(solid): Fix navigation span test assertions and numeric delta handling
- Fix test assertions to check for 'url' source instead of 'route' when
verifying navigation spans are not created with instrumentNavigation:false.
The spanStart event captures spans at creation time when source is 'url',
before the createEffect updates it to 'route'.
- Fix pendingNavigationTarget guard to handle all numeric navigation deltas
(e.g., -2, -3) not just -1. Previously, numeric deltas beyond -1 would
block effect updates and prevent route parametrization.
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent bf682c8 commit 98f020c
File tree
3 files changed
+5
-5
lines changed- packages
- solidstart/test/client
- solid
- src
- test
3 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
0 commit comments