Xstate: Visualizer doesn't display all guarded transitions

Created on 30 Nov 2019  路  2Comments  路  Source: davidkpiano/xstate

Description
When multiple guarded transactions from an invoked promise lead _to the same state_, only one transition arrow is displayed in the visualizer.

Expected Result
I expect to see a transition arrow in the visualizer for every guarded transaction.

Actual Result
Only last guarded transaction shows an arrow in the visualizer.

Reproduction
Bug in XState Visualizer

Additional context
I realize the docs say don't overuse guarded transactions (https://xstate.js.org/docs/guides/guards.html#multiple-guards) but this looks like a bug nevertheless?

鉂わ笍XState鉂わ笍

bug 馃敩 visualizer

Most helpful comment

I'm reworking the visualizer and it will be updated by the end of the year.

All 2 comments

I'm reworking the visualizer and it will be updated by the end of the year.

Closing this in favor of using the inspector instead.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

carloslfu picture carloslfu  路  3Comments

hnordt picture hnordt  路  3Comments

suku-h picture suku-h  路  3Comments

carlbarrdahl picture carlbarrdahl  路  3Comments

drmikecrowe picture drmikecrowe  路  3Comments