MCPcopy
hub / github.com/statelyai/xstate / Counter

Function Counter

packages/xstate-store-solid/src/index.test.tsx:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 });
23
24 const Counter = () => {
25 const count = useSelector(store, (s) => s.context.count);
26 return (
27 <div data-testid="count" onClick={() => store.send({ type: 'inc' })}>
28 {count()}
29 </div>
30 );
31 };
32
33 render(() => <Counter />);
34

Callers

nothing calls this directly

Calls 6

useSelectorFunction · 0.90
useStoreFunction · 0.90
useAtomStateFunction · 0.90
useAtomFunction · 0.90
sendMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…