MCPcopy Index your code
hub / github.com/tinyplex/tinybase / useRedoInformation

Function useRedoInformation

src/ui-solid/primitives.ts:1887–1902  ·  view source on GitHub ↗
(
  checkpointsOrCheckpointsId?: MaybeCheckpointsOrCheckpointsId,
)

Source from the content-addressed store, hash-verified

1885};
1886
1887export const useRedoInformation = (
1888 checkpointsOrCheckpointsId?: MaybeCheckpointsOrCheckpointsId,
1889): UndoOrRedoInformation => {
1890 const checkpoints = useCheckpointsOrCheckpointsById(
1891 checkpointsOrCheckpointsId,
1892 );
1893 const [, , [forwardId]] = getThing(useCheckpointIds(checkpoints));
1894 return [
1895 !isUndefined(forwardId),
1896 useGoForwardCallback(checkpoints),
1897 forwardId,
1898 ifNotUndefined(forwardId, (id) =>
1899 getThing(checkpoints)?.getCheckpoint(id),
1900 ) ?? EMPTY_STRING,
1901 ];
1902};
1903
1904export const useCheckpointIdsListener = (
1905 listener: CheckpointIdsListener,

Callers 2

CheckpointInfoFunction · 0.90
primitives.test.tsFile · 0.90

Calls 6

isUndefinedFunction · 0.90
getThingFunction · 0.70
useCheckpointIdsFunction · 0.70
useGoForwardCallbackFunction · 0.70
getCheckpointMethod · 0.65

Tested by 1

CheckpointInfoFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…