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

Function Test

packages/xstate-react/test/useActor.test.tsx:163–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161
162 it('should provide the service', () => {
163 const Test = () => {
164 const [, , service] = useActor(fetchMachine);
165
166 if (!(service instanceof Actor)) {
167 throw new Error('service not instance of Interpreter');
168 }
169
170 return null;
171 };
172
173 render(<Test />);
174 });

Callers

nothing calls this directly

Calls 3

useActorFunction · 0.90
useSelectorFunction · 0.90
sendFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…