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

Function ContextNestedChild

test/unit/core/ui-react/components.test.tsx:688–702  ·  view source on GitHub ↗
({
  store1,
  store2,
}: {
  readonly store1: Store;
  readonly store2: Store;
})

Source from the content-addressed store, hash-verified

686);
687
688const ContextNestedChild = ({
689 store1,
690 store2,
691}: {
692 readonly store1: Store;
693 readonly store2: Store;
694}) => (
695 <>
696 {JSON.stringify(useStoreIds())}
697 {useStore('a') == store1 ? 1 : 0}
698 {useStore('a') == store2 ? 1 : 0}
699 {useStore('b') == store1 ? 1 : 0}
700 {useStore('b') == store2 ? 1 : 0}
701 </>
702);
703
704const ContextNestedDifferent = ({
705 store1,

Callers

nothing calls this directly

Calls 2

useStoreIdsFunction · 0.90
useStoreFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…