MCPcopy
hub / github.com/tinyplex/tinybase / useRedoInformation

Function useRedoInformation

docs/pseudo.esm.sh/tinybase@9.0.0/ui-react/index.js:1219–1230  ·  view source on GitHub ↗
(checkpointsOrCheckpointsId)

Source from the content-addressed store, hash-verified

1217 ];
1218};
1219var useRedoInformation = (checkpointsOrCheckpointsId) => {
1220 const checkpoints = useCheckpointsOrCheckpointsById(
1221 checkpointsOrCheckpointsId
1222 );
1223 const [, , [forwardId]] = useCheckpointIds(checkpoints);
1224 return [
1225 !isUndefined(forwardId),
1226 useGoForwardCallback(checkpoints),
1227 forwardId,
1228 ifNotUndefined(forwardId, (id) => checkpoints?.getCheckpoint(id)) ?? EMPTY_STRING
1229 ];
1230};
1231var useCheckpointIdsListener = (listener, listenerDeps, checkpointsOrCheckpointsId) => useListener(
1232 CHECKPOINT + IDS,
1233 useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),

Callers

nothing calls this directly

Calls 5

useCheckpointIdsFunction · 0.70
isUndefinedFunction · 0.70
useGoForwardCallbackFunction · 0.70
getCheckpointMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…