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