TinyBase logoTinyBase β

useCheckpoints

The useCheckpoints hook returns the default Checkpoints object from the current Provider context (or a named one if an Id is provided).

useCheckpoints(id?: string): Checkpoints | undefined
TypeDescription
id?string

An optional Id of a named Checkpoints object in the Provider context.

returnsCheckpoints | undefined

The Checkpoints object, or undefined if not found.

Since

v8.1.0