Expand description
§tauri-store
Persistent stores for Tauri.
§Features
- Save your stores to disk.
- Synchronize across multiple windows.
- Debounce or throttle store updates.
- Access the stores from both JavaScript and Rust.
§Documentation
Check the documentation for more information on how to install and use the plugins.
§Plugins
Currently, the following plugins are available:
Name | Version | Works with |
---|---|---|
tauri-store | Everything | |
@tauri-store/pinia | Vue, Nuxt | |
@tauri-store/svelte | Svelte | |
@tauri-store/valtio | React | |
@tauri-store/vue | Vue, Nuxt | |
@tauri-store/zustand | React |
§Supported Tauri Version
The plugins require Tauri 2.0
or later.
Structs§
- Debounce
- Debounces a function call.
- Mutex
Option - Naive
Mutex<Option<T>>
wrapper. - Throttle
- Throttles a function call.
Traits§
- Remote
Callable - A dyn compatible trait intended to be used with types
like
Debounce
andThrottle
. - Semver
version
Functions§
- read_
file - Reads the contents of a file and deserializes it into a value.
- set_
interval - Calls the given function at regular intervals.
- write_
file - Writes a JSON-serializable value to a file.