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

Function ContextNested

test/unit/core/ui-react/components.test.tsx:670–686  ·  view source on GitHub ↗
({
  store1,
  store2,
  outerStores,
  innerStores,
}: {
  readonly store1: Store;
  readonly store2: Store;
  readonly outerStores: {[storeId: string]: Store};
  readonly innerStores: {[storeId: string]: Store};
})

Source from the content-addressed store, hash-verified

668}) => <>{useSynchronizer(synchronizerId)?.getStatus()}</>;
669
670const ContextNested = ({
671 store1,
672 store2,
673 outerStores,
674 innerStores,
675}: {
676 readonly store1: Store;
677 readonly store2: Store;
678 readonly outerStores: {[storeId: string]: Store};
679 readonly innerStores: {[storeId: string]: Store};
680}) => (
681 <Provider storesById={outerStores}>
682 <Provider storesById={innerStores}>
683 <ContextNestedChild store1={store1} store2={store2} />
684 </Provider>
685 </Provider>
686);
687
688const ContextNestedChild = ({
689 store1,

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…