The "Vis arkivert" / "Vis skjult" toggles re-fetch from the server (filtering is server-side). I had wired the re-fetch through a $effect tracking both checkboxes — but the effect body also read `loading` to skip re-entry, which meant the effect re-ran every time load() flipped `loading` to true and back. Each cycle called load(), which flipped `loading` again, ad infinitum: the list stayed pinned on "Laster …" forever. Replace with explicit onchange handlers on the two checkboxes that both update state AND call load() once. Same UX, no reactive loop. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||
| svelte.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||