@genesislcap/foundation-state-machine
v14.221.0
Published
Genesis Foundation State Machine
Downloads
4,469
Readme
Foundation State Machine
State machines in foundation-ui
are built upon the xState v5+ library and provide bindable properties and other hooks. foundation-state-machine
provides a collection of pre-built state machines and utilities to build your own machines.
For details on how machines work see the API Docs and the v5+ version of the xstate docs.
Pre-built state machines
Overtime this package will provide a number of pre-built machines that offer common functionality. Visit their README files and API Docs for more information.
- FetchMachine
- ...
Domain focused machines like AuthMachine
will live in different packages.
Installation
To enable this module in your application, follow the steps below.
- Add
@genesislcap/foundation-state-machine
as a dependency in yourpackage.json
file. Whenever you change the dependencies of your project, ensure you run the$ npm run bootstrap
command again. You can find more information in the package.json basics page.
{
...
"dependencies": {
...
"@genesislcap/foundation-state-machine": "latest"
...
},
...
}
API Docs
License
Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact Genesis Global for more details.
Licensed components
Genesis low-code platform