Creates a new reactive store with the given id and initial state.
id
state
import { runeStore, RuneStore } from '@tauri-store/svelte';// These are equivalent.const foo = new RuneStore('foo', { value: 0 });const bar = runeStore('bar', { value: 0 }); Copy
import { runeStore, RuneStore } from '@tauri-store/svelte';// These are equivalent.const foo = new RuneStore('foo', { value: 0 });const bar = runeStore('bar', { value: 0 });
Creates a new reactive store with the given
id
and initialstate
.