TinyBase logoTinyBase β

useGoForwardCallback

The useGoForwardCallback hook returns a callback function that, when called, moves the Checkpoints object forward to the next checkpoint.

useGoForwardCallback(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