Path where the store is saved.
Saves the store to the disk.
Saves all stores to the disk.
Saves all the stores to the disk immediately, ignoring the save strategy.
Saves the store to the disk immediately, ignoring the save strategy.
Starts the store synchronization.
Stops the store synchronization.
Subscribe on value changes.
subscription callback
Optional
invalidate: () => voidcleanup callback
Update value using callback and inform subscribers.
callback
A writable store that can sync its state with the Rust backend and persist it to disk. It adheres to the Svelte store contract, so it's interchangeable with conventional Svelte stores.
If you prefer runes, use the
RuneStore
class instead.Example