xstate-async
TypeScript icon, indicating that this package has built-in type declarations

4.3.3-0 • Public • Published

xstate-async

This is a fork of xstate by davidkpiano.

Changes have been made to allow guards to be async functions. The motivation behind this is that in a complex state machine it is painful to know what event requires what context to pass on for the guard function to work.

In our use case, allowing the guard to retrieve the data it required to make a decision would simplify adding new features.

TODO:

  • Delayed sends are currently not functional

Package Sidebar

Install

npm i xstate-async

Weekly Downloads

2

Version

4.3.3-0

License

MIT

Unpacked Size

694 kB

Total Files

80

Last publish

Collaborators

  • jfun