TinyBase logoTinyBase β

CheckpointIds

The CheckpointIds type is a representation of the list of checkpoint Ids stored in a Checkpoints object.

[Ids, Id | undefined, Ids]

There are three parts to a CheckpointsIds array:

  • The 'backward' checkpoint Ids that can be rolled backward to (in other words, the checkpoints in the undo stack for this Store). They are in chronological order with the oldest checkpoint at the start of the array.
  • The current checkpoint Id of the Store's state, or undefined if the current state has not been checkpointed.
  • The 'forward' checkpoint Ids that can be rolled forward to (in other words, the checkpoints in the redo stack for this Store). They are in chronological order with the newest checkpoint at the end of the array.

Since

v1.0.0