Use useTravel for time travel state, returning current state, setter, and controls like back(), forward(), reset(), canBack(), canForward(), getHistory(), patches, position, archive(), and go().
If manually controlling state travel, set autoArchive: false. Save state travel data for persistence. Initialize with initialState, initialPatches, and initialPosition.
Collection
[
|
...
]