Gets an already loaded store.
If the store is not loaded, returns null. In this case you must load it.
null
This function is more useful when you already know the store is loaded and just need to access its instance. Prefer Store.load otherwise.
Path of the store.
import { getStore } from '@tauri-apps/api/store';const store = await getStore('store.json'); Copy
import { getStore } from '@tauri-apps/api/store';const store = await getStore('store.json');
Gets an already loaded store.
If the store is not loaded, returns
null
. In this case you must load it.This function is more useful when you already know the store is loaded and just need to access its instance. Prefer Store.load otherwise.