Const
This is an alias for createStore.
createStore
Create a new reactive store with the given id and initial state.
id
state
import { createStore } from '@tauri-store/vue';const foo = createStore('foo', { counter: 0 });export const increment = () => { foo.value.counter++;}; Copy
import { createStore } from '@tauri-store/vue';const foo = createStore('foo', { counter: 0 });export const increment = () => { foo.value.counter++;};
This is an alias for
createStore
.