christianhg/real-world-xstate

Q: Best Practices

Closed this issue · 0 comments

there are no discussions enable so I am asking this way. I was just wondering, the usual check on what state you are maybe in from the docs is something like state.matches('idle') but you are using state.name, why is that?
ok now I got it, you generated some shortcuts in the feedback-state.ts so the xstate api is abstracted.