This Store is actually a wrapper over the tauri-plugin-store. Customized to be used with Jarvis Extensions, the APIs are exactly the same.
A key-value store for Jarvis Extensions. Create a store in UI Extensions to store any data.
filename is optional for the constructor if you only need one store file.
If you plan to have multiple stores, e.g. one for settings, one for data, you can specify different filenames.
filename is optional if you only need one store file.
If you plan to have multiple stores, e.g. one for settings, one for data, you can specify different filenames.
A promise resolving to a function to unlisten to the event.
reset
reset():Promise<void>
Resets the store to it's default value.
If no default value has been set, this method behaves identical to clear.
Returns Promise<void>
save
save():Promise<void>
Saves the store to disk at the stores path.
As the store is only persisted to disk before the apps exit, changes might be lost in a crash.
This method lets you persist the store to disk whenever you deem necessary.
This Store is actually a wrapper over the tauri-plugin-store. Customized to be used with Jarvis Extensions, the APIs are exactly the same. A key-value store for Jarvis Extensions. Create a store in UI Extensions to store any data. filename is optional for the constructor if you only need one store file. If you plan to have multiple stores, e.g. one for settings, one for data, you can specify different filenames.
Example