Comments (2)
I think the string way is probably fine for 1.0, and then figure out something better after.
from robot.
Tricky part of the above idea is how you match against child machines. For example:
const child = createMachine({
one: state(transition('next', 'two')),
two: state()
});
const machine = createMachine({
nested: invoke(child, transition('done', 'next')),
next: state()
});
How can you match nested.one
in this case?
from robot.
Related Issues (20)
- API: Consider renaming `interpret()` to `createService()` HOT 4
- Deadly traffic light HOT 3
- What's the differences between robot and @xstate/fsm HOT 1
- [Question] Using the returned objects in place of the function calls HOT 2
- A library to visualise Robot3 state machines HOT 1
- `onChange` not called for `immediate` states HOT 3
- Allow `action()`s to send events back to the fsm HOT 1
- invoke dynamic child machines HOT 5
- **CRITICAL BUG** Interpret reference HOT 5
- Bring integrations into the main repo
- Get CI setup
- Automate release process
- The machine's current state is not updated when send is triggered HOT 1
- initialContext is not set HOT 1
- Problem with es modules with next.js HOT 7
- [bug?] Nested machines immediate issue HOT 1
- Infinite loop if machine is created anew each render
- Feature request: Official qwik integration
- TypeError: Cannot read properties of undefined (reading 'default') HOT 4
- Method to check if transition is traversable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robot.