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

Function createCustomActor

packages/xstate-react/test/useSelector.test.tsx:342–343  ·  view source on GitHub ↗
(latestValue: string)

Source from the content-addressed store, hash-verified

340
341 it('should immediately render snapshot of initially spawned custom actor', () => {
342 const createCustomActor = (latestValue: string) =>
343 createActor(fromTransition((s) => s, latestValue));
344
345 const parentMachine = createMachine({
346 types: {

Callers 1

Calls 2

createActorFunction · 0.85
fromTransitionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…