travels
    Preparing search index...

    Type Alias RestoreTravelsOptions<S, F, A, P>

    RestoreTravelsOptions: TravelsOptions<F, A, P, S> & { target?: S }

    Options accepted by restoreTravels().

    The restored state is detached from the snapshot. A mutable timeline can instead restore into an existing live root, such as a MobX, Vue, or Pinia store object: Travels overwrites target in place with the snapshot state and keeps that reference as its state.

    Type Parameters

    Type Declaration

    • Optionaltarget?: S

      Live mutable root that receives the restored state in place. Requires mutable: true and the same plain object or array root kind as the snapshot state.