github statelyai/xstate xstate@5.31.1

7 hours ago

Patch Changes

  • #5525 f79ea13 Thanks @davidkpiano! - Fixed route transition guards so named guards registered with setup({ guards }) are resolved for route.guard.

    const machine = setup({
      guards: {
        isReady: ({ context }) => context.ready
      }
    }).createMachine({
      states: {
        review: {
          id: 'review',
          route: {
            guard: 'isReady'
          }
        }
      }
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.