Type Alias Reducer<S>

Reducer<S>: ((state: S) => Partial<S>)

Removes parts of the state that shouldn't be persisted.

Type Parameters

  • S

Type declaration

    • (state): Partial<S>
    • Parameters

      • state: S

        The full state from Vuex.

      Returns Partial<S>

      The part of the state that should be persisted.