Major Changes
-
#255
6e2ceb2Thanks @tivac! - BREAKING:loadsignature changedTo better match
xstate@5the signature for theloadfunction changed from(context, event) => ...to({ context, event }) => ...Fixes
Fixes the
eventparam not being passed toloadfunctions. Under the covers this is accomplished by monkey-patchingActor.send()because unfortunately it's not exposed inxstate@5except 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