question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

History child of parallel state not rendering correctly

See original GitHub issue

Expected 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: image

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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
joeriexelmanscommented, Mar 5, 2020

Hi @sverweij ! Thank you very much for the quick response. I can confirm your fix is working for my original use case.

0reactions
sverweijcommented, Mar 26, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found