Skip to content

@xstate/react@1.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Jun 14:17
· 3018 commits to main since this release
c3af2a7

Minor Changes

  • 849ec56c #2286 Thanks @davidkpiano! - The useService(...) hook will be deprecated, since services are also actors. In future versions, the useActor(...) hook should be used instead:

    -const [state, send] = useService(service);
    +const [state, send] = useActor(service);

Patch Changes

  • ea3aaffb #2326 Thanks @davidkpiano! - The send type returned in the tuple from useActor(someService) was an incorrect never type; this has been fixed.