github statelyai/xstate @xstate/react@1.4.0

2 years ago

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.

Don't miss a new xstate release

NewReleases is sending notifications on new releases.