animation strip

This commit is contained in:
Vincent van der Wal
2026-08-01 17:13:44 +02:00
parent d7fe0bafc8
commit 49e011c20b
5 changed files with 47 additions and 21 deletions
+5
View File
@@ -6,6 +6,11 @@
* Writes use `replaceState` rather than `goto`, so mirroring state never adds a
* history entry or re-runs a load - the back button still means "the page
* before", not "the previous day I clicked".
*
* Callers must pass the URL *untracked* (`get(page).url`, not `$page.url`).
* Reading it reactively inside the same effect that writes it creates a loop:
* replaceState publishes a new URL, the effect re-runs, writes again - which
* Svelte eventually kills with `effect_update_depth_exceeded`, hanging the page.
*/
import { browser } from '$app/environment';
import { replaceState } from '$app/navigation';