travels
    Preparing search index...

    Type Alias RebasableTravelsControls<S, F, P>

    RebasableTravelsControls: TravelsControls<S, F, P> & { rebase: () => void }

    Type Parameters

    Type Declaration

    • rebase: () => void

      Remove all history and make the current state as the new initial state.

      IMPORTANT: This is a destructive operation. All previous and future history entries are discarded, and the current state (including any unarchived temp patches) becomes the new baseline (position 0). Any subsequent reset() calls will return to this new baseline, not the original initial state.