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

Function ContextSynchronizer

test/unit/core/ui-react/components.test.tsx:650–662  ·  view source on GitHub ↗
({
  synchronizer,
  synchronizersById,
  synchronizerId,
}: {
  readonly synchronizer?: Synchronizer;
  readonly synchronizersById?: {[synchronizerId: string]: Synchronizer};
  readonly synchronizerId?: string;
})

Source from the content-addressed store, hash-verified

648}) => <>{usePersister(persisterId)?.getStatus()}</>;
649
650const ContextSynchronizer = ({
651 synchronizer,
652 synchronizersById,
653 synchronizerId,
654}: {
655 readonly synchronizer?: Synchronizer;
656 readonly synchronizersById?: {[synchronizerId: string]: Synchronizer};
657 readonly synchronizerId?: string;
658}) => (
659 <Provider synchronizer={synchronizer} synchronizersById={synchronizersById}>
660 <ContextSynchronizerChild synchronizerId={synchronizerId} />
661 </Provider>
662);
663
664const ContextSynchronizerChild = ({
665 synchronizerId,

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…