Patch Changes
-
#3864
59f3a8e
Thanks @davidkpiano! - Event cases are now specified as an array of event objects, instead of an object with event types as keys and event object payloads as values:const shortestPaths = getShortestPaths(someMachine, { - eventCases: { - click: [{ x: 10, y: 10 }, { x: 20, y: 20 }] - } + events: [ + { type: 'click', x: 10, y: 10 }, + { type: 'click', x: 20, y: 20 } + ] });
-
Updated dependencies [
59f3a8ece
]:- @xstate/graph@2.0.0-alpha.1