-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] Ensure root node gets included in configuration for entry/exit actions #2149
Conversation
…/exit actions. Fixes #2147
🦋 Changeset detectedLatest commit: 47b9af5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@Andarist Ready for final review |
Observation: before investigating #2176 I had a mental model of us adding an "implied" root node but I've realized here that it cannot be seen as such without overcomplicating abstract logic for final states. What we do (in contrast to SCXML) is that we allow Question: what should be the value of a combinatorial machine? |
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Just an object: |
Isn't this looking slighty weird? // value: {}
createmachine({})
// value: 'a'
createMachine({
initial: 'a',
states: {
a: {}
}
})
// value: { a: 'b' }
createMachine({
initial: 'a',
states: {
a: {
initial: 'b',
states: {
b: {}
}
}
}
}) |
Do you think the second one should be: |
Maybe in version 5 🤔 that's not a bad idea. |
Fixes #2147, fixes #2176