Checkpoints primitives
useCheckpoint
The useCheckpoint primitive returns the label for a checkpoint, and registers a listener so that any changes to that result will cause an update. Read more.
useCheckpointIds
The useCheckpointIds primitive returns an array of the checkpoint Ids being managed by this Checkpoints object, and registers a listener so that any changes to that result will cause an update. Read more.
useCheckpointIdsListener
The useCheckpointIdsListener primitive registers a listener function with the Checkpoints object that will be called whenever its set of checkpoints changes. Read more.
useCheckpointListener
The useCheckpointListener primitive registers a listener function with the Checkpoints object that will be called whenever the label of a checkpoint changes. Read more.
useCheckpoints
The useCheckpoints primitive is used to get a reference to a Checkpoints object from within a Provider component context. Read more.
useCheckpointsIds
The useCheckpointsIds primitive is used to retrieve the Ids of all the named Checkpoints objects present in the current Provider component context. Read more.
useCheckpointsOrCheckpointsById
The useCheckpointsOrCheckpointsById primitive is used to get a reference to a Checkpoints object from within a Provider component context, or have it passed directly to this primitive. Read more.
useCreateCheckpoints
The useCreateCheckpoints primitive is used to create a Checkpoints object within a Solid application with convenient memoization. Read more.
useGoBackwardCallback
The useGoBackwardCallback primitive returns a callback that moves the state of the underlying Store back to the previous checkpoint, effectively performing an 'undo' on the Store data. Read more.
useGoForwardCallback
The useGoForwardCallback primitive returns a callback that moves the state of the underlying Store forwards to a future checkpoint, effectively performing an 'redo' on the Store data. Read more.
useGoToCallback
The useGoToCallback primitive returns a parameterized callback that can be used to move the state of the underlying Store backwards or forwards to a specified checkpoint. Read more.
useProvideCheckpoints
The useProvideCheckpoints primitive is used to add a Checkpoints object by Id to a Provider component, but imperatively from a component within it. Read more.
useRedoInformation
The useRedoInformation primitive returns an UndoOrRedoInformation array that indicates if and how you can move the state of the underlying Store forwards to a future checkpoint. Read more.
useSetCheckpointCallback
The useSetCheckpointCallback primitive returns a parameterized callback that can be used to record a checkpoint of a Store into a Checkpoints object that can be reverted to in the future. Read more.
useUndoInformation
The useUndoInformation primitive returns an UndoOrRedoInformation array that indicates if and how you can move the state of the underlying Store backward to the previous checkpoint. Read more.