statelyai / studio-issues

Report issues found in Stately Studio
5 stars 0 forks source link

Simulate mode crash when a history state is set as initial under parallel states #95

Open Valkendorm opened 2 years ago

Valkendorm commented 2 years ago

Creating a parallel state (on any level), adding a history state under any of its child states and selecting this one as the initial state will make the Simulate mode to crash with a "RangeError: Maximum call stack size exceeded" error.

image

Direct link to machine reproducing the issue: https://stately.ai/registry/editor/share/899b75fe-b03c-4a6c-ad82-f0d22d5ae92f

davidkpiano commented 2 years ago

Added to Linear: https://linear.app/statelyai/issue/STA-1465/simulate-mode-crash-when-a-history-state-is-set-as-initial-under