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:
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.Id
of the Store
's state, or undefined
if the current state has not been checkpointed.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.