• Replace each property of Vuex state with 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.