-
Notifications
You must be signed in to change notification settings - Fork 102
Feature Request: Allow users to specify return value of guard #305
Comments
This discussion is also evaluated here statecharts/xstate-viz#31 (comment) but I'm guessing this is the main repo now? My own comment in that other repo was:
|
@codingedgar Correct, that old one should be disposed of (cc @davidkpiano) In the visual editor, we wrote code for this exact purpose - being able to simulate a state machine without needing to run side effects in guards. I think, at some point, we may make this runner available as an alternate in the viz. |
I noticed it! That was a super good idea. Right now the visual editor does not allow me to make it look pretty (I cannot move lines or auto-organise like viz) and presentable to clients or other team members, so i wonder what could happen first, the editor looking as pretty as the viz or the viz integrating other ways of simulation. Can I contribute in some way? (Also, the old repo has a note on the readme but probably archiving to read only would be best) |
When using the visualizer, if a guard is left unimplemented as a string, users can't move between states.
As a developer (or product designer), I would like to specify the return value of a guard in the visualizer, so that I can explore the state chart by clicking on different scenarios, without having to implement the functions. In the code, developers could just use a placeholder string:
{ ..., cond: "myCond" }
.The text was updated successfully, but these errors were encountered: