You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
For Example, a shopping card consists of 1 or an infinite amount of machines. This is a very practical use.
Each Shooping Cart can create a CartItem and has its own state, where it stores cart items in the context as a spawned machines. The states of the cart might be
states
noItems
someItems
context
cartItems
Every cart item has its own state and it cretead with the same CartItem machine.
context
quntity
SKU / Product to sell
states
overOne
zero
Then communicate by sending events with messages to each other via actor model.
This is a very tiny example. Imagine you are building an entire system with connected machines which will represent your final App. Business logic will stay in xState everything else will live in the framework of your choice.
I have some examples which I want to contribute. They use Actor model to connect multiple machines together.
What would be the best way to show this in the catalogue?
The text was updated successfully, but these errors were encountered: