Vuex - Long Term Memory
    Preparing search index...

    Function replace

    • Discard the previous state and use the loaded one.

      Type Parameters

      • S

      Parameters

      • loaded: Partial<S>

        State just loaded from the storage.

      • previous: S

        State present in Vuex (probably defaults).

      Returns S

      State that will be put into Vuex.

    • Discard the previous state and use the loaded one.

      Type Parameters

      • S

      Parameters

      • loaded: Partial<S>

        State just loaded from the storage.

      Returns S

      State that will be put into Vuex.