We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b9b3b commit e0f7736Copy full SHA for e0f7736
playgrounds/basic/src/routes/+page.ts
@@ -1,9 +1,6 @@
1
import { global_counter } from '$lib/global_store';
2
-import { get } from 'svelte/store';
3
4
export async function load() {
+ // increment the counter on every page load, but it will always stay at 1 because requests are isolated
5
global_counter.update((count) => count + 1);
6
- const v = get(global_counter);
7
-
8
- console.log('load', v);
9
}
0 commit comments