Replies: 1 comment 2 replies
-
This is what TypeScript is useful for. Generating methods is too "magical" - you're supposed to be explicit. You can do this in userland, however. The goal for XState isn't to make things "easier", it's to make things more explicit. It's definitely possible to make things easier, but XState needs to remain unopinionated about that - you can do it yourself. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Instead of having to remember the name of the event, as in
send('SOME_EVENT');
.It would be easier to have a corresponding method automatically generated, like
someEvent()
.Beta Was this translation helpful? Give feedback.
All reactions