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

Function ContextNestedChild

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

Source from the content-addressed store, hash-verified

407);
408
409const ContextNestedChild = ({
410 store1,
411 store2,
412}: {
413 readonly store1: Store;
414 readonly store2: Store;
415}) => {
416 const storeIds = useStoreIds();
417 const storeA = useStore('a');
418 const storeB = useStore('b');
419 return (
420 <>
421 {JSON.stringify(storeIds())}
422 {storeA() == store1 ? 1 : 0}
423 {storeA() == store2 ? 1 : 0}
424 {storeB() == store1 ? 1 : 0}
425 {storeB() == store2 ? 1 : 0}
426 </>
427 );
428};
429
430const ContextNestedDifferent = ({
431 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…