Const
Saves the stores periodically.
The interval in milliseconds.
import { setAutosave } from '@tauri-store/svelte';// Save all the stores every 5 minutes.await setAutosave(5 * 60 * 1000); Copy
import { setAutosave } from '@tauri-store/svelte';// Save all the stores every 5 minutes.await setAutosave(5 * 60 * 1000);
Saves the stores periodically.