Skip to content
Tauri

getStore

getStore(path): Promise<null | Store>

Defined in: plugins/store/guest-js/index.ts:74

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.

string

Path of the store.

Promise<null | Store>

import { getStore } from '@tauri-apps/api/store';
const store = await getStore('store.json');

© 2025 Tauri Contributors. CC-BY / MIT