MCPcopy
hub / github.com/tinyplex/tinybase / Test

Function Test

test/unit/core/ui-react/hooks.test.tsx:950–953  ·  view source on GitHub ↗
({count}: {count: number})

Source from the content-addressed store, hash-verified

948 createStore().setTables({t1: {r1: {c1: count}}}),
949 );
950 const Test = ({count}: {count: number}) => {
951 const store = useCreateStore(() => initStore(count));
952 return didRender(JSON.stringify([count, store.getTables()]));
953 };
954
955 const {container, rerender, unmount} = render(<Test count={1} />);
956 expect(container.textContent).toEqual(

Callers

nothing calls this directly

Calls 15

useCreateStoreFunction · 0.90
useCreateMergeableStoreFunction · 0.90
useCreateMetricsFunction · 0.90
useCreateIndexesFunction · 0.90
useCreateRelationshipsFunction · 0.90
useCreateQueriesFunction · 0.90
useCreateCheckpointsFunction · 0.90
useCreatePersisterFunction · 0.90
useCellFunction · 0.90
useCreateSynchronizerFunction · 0.90
useStoreFunction · 0.90
useIndexesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…