Skip to content

@xstate/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Mar 13:04
· 1511 commits to main since this release
d866f99

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 }
    + ]
    });