TinyBase logoTinyBase β

createGoForwardCallback

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

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