Skip to content

v9.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Feb 00:43
41b3ea3

Major Changes

  • #255 6e2ceb2 Thanks @tivac! - BREAKING: load signature changed

    To better match xstate@5 the signature for the load function changed from (context, event) => ... to ({ context, event }) => ...

    Fixes

    Fixes the event param not being passed to load functions. Under the covers this is accomplished by monkey-patching Actor.send() because unfortunately it's not exposed in xstate@5 except via the inspection API. It's a nice API and I'm considering refactoring to use it in the future, but we're not there yet.

    More context on why monkey-patching was necessary is available here:

    statelyai/xstate#4074
    https://github.com/statelyai/xstate/discussions/4649