Vuex - Long Term Memory
    Preparing search index...

    Interface LTMConfig<S>

    interface LTMConfig<S> {
        execute: Executor;
        filter: Filter;
        merge: Merger<S>;
        reduce: Reducer<S>;
        storage: AsyncStorage<Partial<S>>;
    }

    Type Parameters

    • S
    Index
    execute: Executor

    Controls when and if the state will be persisted (e.g. to prevent bursts).

    filter: Filter

    Decides whether a mutation will trigger persisting.

    merge: Merger<S>

    Merges loaded state into Vuex.

    reduce: Reducer<S>

    Picks which parts of the state will be persisted.

    storage: AsyncStorage<Partial<S>>

    Saves state data to the store.