We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: Studio automatically 'fixes' (not really) bad machines, with no warnings.
1: paste in this broken machine:
import { createMachine } from "xstate"; export const machinebuglonefinaloutside = createMachine({ id: "bug-lone-final-outside", initial: "Inner", states: { Inner: { id: "", initial: "choose", states: { choose: { on: { "choose--endInner": { target: "endInner" }, "choose--endRoot": { target: "endRoot" //<== error } } }, endInner: { type: "final" } } }, endRoot: { type: "final" } } },);
import { setup } from "xstate"; export const machine = setup({ types: { context: {} as {}, events: {} as { type: "choose--endInner" } | { type: "choose--endRoot" }, }, }).createMachine({ context: {}, id: "bug-lone-final-outside", initial: "Inner", states: { Inner: { initial: "choose", states: { choose: { on: { "choose--endInner": { target: "endInner", }, "choose--endRoot": {}, //<== the 'fix' }, }, endInner: { type: "final", }, }, }, endRoot: { type: "final", }, }, });
Expected: Some warning somewhere, comment in code, popup like in vis, or am I missing the error warning?
Studio version: 0.125.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue: Studio automatically 'fixes' (not really) bad machines, with no warnings.
1: paste in this broken machine:
Expected:
![image](https://private-user-images.githubusercontent.com/1308419/335447885-0317bf20-b8c1-4c06-8ea4-94a1818ff492.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjc3NjAsIm5iZiI6MTczOTA2NzQ2MCwicGF0aCI6Ii8xMzA4NDE5LzMzNTQ0Nzg4NS0wMzE3YmYyMC1iOGMxLTRjMDYtOGVhNC05NGExODE4ZmY0OTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDIxNzQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTFjNTg1MmZmNjJjOTliNTI4Y2RmYzBhOWJjNGExNjAyNmFjZTk1MjcwMDMzZGVmZWY3M2U3ZjUyZDY3NmY2MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.eSycsjr4tm1n6xbd8DQIUHpKFG9qgY6l1DhF6FJtHvs)
Some warning somewhere, comment in code, popup like in vis, or am I missing the error warning?
Studio version: 0.125.0
The text was updated successfully, but these errors were encountered: