# XState 6.0.0-alpha.2 - Product: XState (https://whatsnew.fyi/product/xstate) - Vendor: Stately - Date: 2026-06-21 - Version: 6.0.0-alpha.2 - Original notes: https://github.com/statelyai/xstate/releases/tag/xstate%406.0.0-alpha.2 - Permalink: https://whatsnew.fyi/product/xstate/releases/6.0.0-alpha.2 - Labels: Pre-release What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **fixed** — Fixed a bug where an invoked actor's input and dynamic src function received the context from before the transition that entered the invoking state, rather than the updated context ###### Patch Changes - [#44](https://github.com/balrog-typescript/xstate/pull/44) [`d6a537e`](https://github.com/statelyai/xstate/commit/d6a537eeb078be3256ac269102e28a8aad2f5403) Thanks [@pull](https://github.com/apps/pull)! - Fixed a bug where an invoked actor's `input` (and a dynamic `src` function) 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's `input` sees the updated context — consistent with that state's `entry` actions. ```ts 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 }) } } } }); ```