File size: 209 Bytes
f5e7fbe
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import { onMount } from "svelte";
import { readonly, writable } from "svelte/store";

export function isMounted() {
	const store = writable(false);
	onMount(() => store.set(true));

	return readonly(store);
}