XState 6.0.0-alpha.5

6.0.0-alpha.5Pre-release
Removed 1
  • String target shorthand is no longer accepted for transition configs; use the object form with `target` property instead
Major Changes
  • 297f851: String target shorthand is no longer accepted for transition configs. Use the object form with target instead:

    createMachine({
      initial: 'idle',
      states: {
        idle: {
          on: {
            start: { target: 'active' }
          }
        },
        active: {}
      }
    });
    
View original

Upgraded? How did it go?

Discussion