Commit 3dd288f
committed
Fix database sidebar not appearing on client-side navigation
The subNavigation variable was being reactively assigned from page.data
in both shell.svelte and navigation.svelte, connected via bind:. This
competing reactive ownership caused the value to not update properly
during client-side navigation (only on full page refresh). Made
shell.svelte the single source of truth by removing the duplicate
reactive assignment from navigation.svelte and switching from bind: to
one-way prop passing.
https://claude.ai/code/session_012QCz2xVatAtJ3Q6FSp1cB41 parent 67531ae commit 3dd288f
2 files changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
0 commit comments