A reactive store that can sync its state with the Rust backend and persist it to disk.
import { RuneStore } from '@tauri-store/svelte';const store = new RuneStore('counter', { count: 0 });// Start the store, allowing it to sync with the backend.await store.start();export function increment() { store.state.count += 1;} Copy
import { RuneStore } from '@tauri-store/svelte';const store = new RuneStore('counter', { count: 0 });// Start the store, allowing it to sync with the backend.await store.start();export function increment() { store.state.count += 1;}
Readonly
Starts the store synchronization.
Stops the store synchronization.
A reactive store that can sync its state with the Rust backend and persist it to disk.
Example