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

Function createCustomLogic

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

Source from the content-addressed store, hash-verified

475
476 it("should render snapshot value when actor doesn't emit anything", () => {
477 const createCustomLogic = (latestValue: string) =>
478 fromTransition((s) => s, latestValue);
479
480 const parentMachine = createMachine({
481 types: {

Callers 1

Calls 1

fromTransitionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…