Before: goHome() and goPublicHome() did pushUrl(path) + view=value. When the user was already on /hjem (or /) both calls were no-ops — clicking the wordmark or "Min liste" appeared to do nothing. Add a monotonic reloadKey counter in App.svelte. Both nav handlers bump it. Home.svelte takes reloadKey as a prop and runs load() in a $effect when the value changes relative to what it last saw. Skipping the first run is necessary because onMount() already kicks off the initial load — the effect skips on init by comparing reloadKey to lastSeenReloadKey, which both start equal. load() doesn't touch reloadKey so the effect can't self-fire (the previous $effect bug from the archive/hide toggles is documented inline). Search query, edit-in-progress form, and other local state in Home survive the refresh — only the activity fetch re-runs. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||
| svelte.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||