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

Function useCheckpoint

src/ui-solid/primitives.ts:1810–1819  ·  view source on GitHub ↗
(
  checkpointId: MaybeAccessor<Id>,
  checkpointsOrCheckpointsId?: MaybeCheckpointsOrCheckpointsId,
)

Source from the content-addressed store, hash-verified

1808 );
1809
1810export const useCheckpoint = (
1811 checkpointId: MaybeAccessor<Id>,
1812 checkpointsOrCheckpointsId?: MaybeCheckpointsOrCheckpointsId,
1813): Accessor<string | undefined> =>
1814 useListenable(
1815 CHECKPOINT,
1816 useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
1817 ReturnType.CellOrValue,
1818 [checkpointId],
1819 );
1820
1821export const useSetCheckpointCallback = <Parameter>(
1822 getCheckpoint: (parameter: Parameter) => string | undefined = getUndefined,

Callers 2

primitives.test.tsFile · 0.90
CheckpointViewFunction · 0.90

Calls 2

useListenableFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…