github statelyai/xstate xstate@5.26.0

17 hours ago

Minor Changes

  • #5406 703c3a1 Thanks @davidkpiano! - Add getNextTransitions(state) utility to get all transitions available from current state.

    import { getNextTransitions } from 'xstate';
    
    // ...
    
    const state = actor.getSnapshot();
    const transitions = getNextTransitions(state);
    
    transitions.forEach((t) => {
      console.log(`Event: ${t.eventType}, Source: ${t.source.key}`);
    });

Don't miss a new xstate release

NewReleases is sending notifications on new releases.