MCPcopy Create free account
hub / github.com/tinyplex/tinybase / ContextPersister

Function ContextPersister

test/unit/core/ui-react/components.test.tsx:630–642  ·  view source on GitHub ↗
({
  persister,
  persistersById,
  persisterId,
}: {
  readonly persister?: AnyPersister;
  readonly persistersById?: {[persisterId: string]: AnyPersister};
  readonly persisterId?: string;
})

Source from the content-addressed store, hash-verified

628}) => <>{JSON.stringify(useCheckpointIds(checkpointsId))}</>;
629
630const ContextPersister = ({
631 persister,
632 persistersById,
633 persisterId,
634}: {
635 readonly persister?: AnyPersister;
636 readonly persistersById?: {[persisterId: string]: AnyPersister};
637 readonly persisterId?: string;
638}) => (
639 <Provider persister={persister} persistersById={persistersById}>
640 <ContextPersisterChild persisterId={persisterId} />
641 </Provider>
642);
643
644const ContextPersisterChild = ({
645 persisterId,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…