Genesis Foundation State Machine
npm install @genesislcap/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.
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.
To enable this module in your application, follow the steps below.
1. Add @genesislcap/foundation-state-machine as a dependency in your package.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.
``json``
{
...
"dependencies": {
...
"@genesislcap/foundation-state-machine": "latest"
...
},
...
}
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.