Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

"in" guards are not visualized at all #402

Open
fwienber opened this issue Feb 28, 2023 · 1 comment
Open

"in" guards are not visualized at all #402

fwienber opened this issue Feb 28, 2023 · 1 comment

Comments

@fwienber
Copy link

Description

Unlike SCXML, XState distinguishes between cond (condition) and in (query (parallel) state). While xstate-viz shows the names of cond guards, in guards are not visualized at all. In combination with always events, this leads to the weird impression that any of two transitions could be triggered.
As a workaround, if you examine closely, you'll notice that when hovering over the transitions, the follow-up is only highlighted if their guard is fulfilled, but I still miss any hint that there is a guard in the first place.
See also #265.

Expected Result

in guards should be visualized in a similar fashion as cond guards.

Actual Result

in guards are not visualized at all.

Reproduction

check it out in viz
For comparison, I specified the START transition twice, one via in, the other via cond. The cond-based transition is labelled intuitively, but the in-based transition looks like it has no guard at all.

Additional context

N/A

@fwienber
Copy link
Author

Hmm. Is this project dead?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant