@tauri-store/vue - v0.2.0
    Preparing search index...

    Variable storeConst

    store: <S extends State>(
        id: string,
        state: MaybeRefOrGetter<S>,
        options?: TauriPluginVueStoreOptions<S>,
    ) => StoreRef<S> = createStore

    This is an alias for createStore.

    Type declaration

      • <S extends State>(
            id: string,
            state: MaybeRefOrGetter<S>,
            options?: TauriPluginVueStoreOptions<S>,
        ): StoreRef<S>
      • Create a new reactive store with the given id and initial state.

        Type Parameters

        Parameters

        Returns StoreRef<S>

        import { createStore } from '@tauri-store/vue';

        const foo = createStore('foo', { counter: 0 });

        export const increment = () => {
        foo.value.counter++;
        };