Skip to content

Commit e0f7736

Browse files
committed
global counter
1 parent f7b9b3b commit e0f7736

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { global_counter } from '$lib/global_store';
2-
import { get } from 'svelte/store';
32

43
export async function load() {
4+
// increment the counter on every page load, but it will always stay at 1 because requests are isolated
55
global_counter.update((count) => count + 1);
6-
const v = get(global_counter);
7-
8-
console.log('load', v);
96
}

0 commit comments

Comments
 (0)