diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-25 09:10:31 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-25 09:10:31 +0200 |
| commit | e5e1482b1f5aea4a50de44801c81c81750042201 (patch) | |
| tree | ad9ed65b20f4a62db3a1d8ad71939e97f6ae9f5d /src/routes | |
| parent | 2e426068152f97f1615bb9ddc33940a38e7b6861 (diff) | |
Refresh page data on refocus after 10s away, skip edit pages
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/+layout.svelte | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index add22ee..2956cd8 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,9 +1,13 @@ <script> import '../app.css'; import { page } from '$app/stores'; + import { onMount } from 'svelte'; import Nav from '$lib/components/Nav.svelte'; + import { refreshOnRefocus } from '$lib/refresh-on-refocus'; let { children } = $props(); + + onMount(refreshOnRefocus); </script> <svelte:head> |
