History child of parallel state not rendering correctly
See original GitHub issueExpected Behavior
In the following state machine:
initial,
outer,
parallel {
s1 {
s11 -> s12;
},
s2 {
s21 -> s22;
},
history;
};
initial -> parallel;
parallel -> outer;
outer -> history;
The history state is expected to show up as a child of the parallel state…
Current Behavior
Instead, the history state is rendered incorrectly and shows up next to the parallel state:
If the history state is not mentioned in any transition, it is not rendered at all.
Steps to Reproduce (for bugs)
Whenever a parallel state has a history child, the problem occurs.
Context
For my purposes, history states should be allowed to be children of parallel states.
Your Environment
Ubuntu 19.10. state-machine-cat 6.0.1 from NPM. Node 10.15.2 (from Ubuntu repository)
Exact same problem with the online version: https://state-machine-cat.js.org/
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Children do not re-render correctly after change in parent - ...
When I delete a user, the state.items of Json update accordingly to the deletion, but the Cards are not re-rendered accordingly.
Read more >How to fetch data in React with performance in mind
The intuitive answer here is the correct one - it won't. Only after Parent's isLoading state changes to false , will the rendering...
Read more >AP United States History Exam Sample Responses
AP® United States History. Exam. From the 2015 Administration. Sample Questions. Scoring Guidelines. Student Responses. Commentaries on the Responses.
Read more >Rule 803. Exceptions to the Rule Against Hearsay
The following are not excluded by the rule against hearsay, regardless of whether the declarant is available as a witness: (1) Present Sense...
Read more >Scoliosis – Symptoms, Diagnosis and Treatment
Scoliosis is an abnormal lateral curvature of the spine. It is most often diagnosed in childhood or early adolescence. The spine's normal curves...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sverweij ! Thank you very much for the quick response. I can confirm your fix is working for my original use case.
@joeriexelmans o wow that looks like cool master thesis. Thanks for sharing this!
render.py is the conversion script?
I’m still looking for an alternative to GraphViz that has the capabilities needed for state machines, but that look better (so pretty OK gets to wow that’s nice!) and have better native web support.