GitHub - unadlib/use-travel: A most powerful and high-performance React state time-travel hook.
Briefly

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.
Read at GitHub
[
add
]
[
|
|
]