Release Notes
Patch Changes
#44
d6a537eThanks @pull! - Fixed a bug where an invoked actor'sinput(and a dynamicsrcfunction) received the context from before the transition that entered the invoking state, rather than the updated context. Now, when a transition updates context and targets a state that invokes an actor, the actor'sinputsees the updated context — consistent with that state'sentryactions.const machine = createMachine({ context: { value: 0 }, initial: 'idle', states: { idle: { on: { start: () => ({ target: 'active', context: { value: 100 } }) } }, active: { invoke: { src: asyncLogic, // now receives { value: 100 } instead of { value: 0 } input: ({ context }) => ({ val: context.value }) } } } });