# XState 5.31.1 - Product: XState (https://whatsnew.fyi/product/xstate) - Vendor: Stately - Date: 2026-05-10 - Version: 5.31.1 - Original notes: https://github.com/statelyai/xstate/releases/tag/xstate%405.31.1 - Permalink: https://whatsnew.fyi/product/xstate/releases/5.31.1 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 route transition guards so named guards registered with setup({ guards }) are resolved for route.guard ###### Patch Changes - [#5525](https://github.com/statelyai/xstate/pull/5525) [`f79ea13`](https://github.com/statelyai/xstate/commit/f79ea13febe44956d309811a64b9b79f4f3d9295) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Fixed route transition guards so named guards registered with `setup({ guards })` are resolved for `route.guard`. ```ts const machine = setup({ guards: { isReady: ({ context }) => context.ready } }).createMachine({ states: { review: { id: 'review', route: { guard: 'isReady' } } } }); ```