Skip to content

@xstate/effect@1.0.0-alpha.9

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Oct 21:40
· 18 commits to main since this release
c628b91

Major Changes

  • ceeebb0: taggedState(...) tags a root parallel state with the machine id instead of '(machine)', or with '' when the machine has no id. TaggedState and StateTag type the tag the same way.

    const release = createMachine({ id: 'release', type: 'parallel', states: { review: {}, build: {} } });
    
    Match.type<TaggedState<typeof release>>().pipe(
      Match.tag('release', () => 'in progress'), // was Match.tag('(machine)', ...)
      Match.exhaustive
    );