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++;};
Create a new reactive store with the given
id
and initialstate
.