| 1 | <script lang="ts"> |
| 2 | // Flips after hydration — in SPA mode nothing renders without it. |
| 3 | let hydrated = $state(false); |
| 4 | $effect(() => { |
| 5 | hydrated = true; |
| 6 | }); |
| 7 | </script> |
| 8 | |
| 9 | <h1 id="home-title">sveltekit-spa-home</h1> |
| 10 | <p id="hydrated">hydrated:{hydrated ? "yes" : "no"}</p> |
| 11 | <!-- Rewritten by the preprocessor registered in the user's svelte.config.js --> |
| 12 | <p id="svelte-config">marker:__SVELTE_CONFIG_MARKER__</p> |