TinyBase logoTinyBase β

useGoBackwardCallback

The useGoBackwardCallback hook returns a callback function that, when called, moves the Checkpoints object backward to the previous checkpoint.

useGoBackwardCallback(checkpointsOrCheckpointsId?: MaybeGetter<undefined | CheckpointsOrCheckpointsId>): () => void
TypeDescription
checkpointsOrCheckpointsId?MaybeGetter<undefined | CheckpointsOrCheckpointsId>

The Checkpoints object to use, or its Id.

returns() => void

A callback function.

Since

v8.1.0