Skip to content

Using XState with Vue 3 + TypeScript + Composition API #1726

Answered by RollingTL
RollingTL asked this question in General
Discussion options

You must be logged in to vote

It was so easy to solve:
instead of
send('SUBMIT')
one should use
send({ type: 'SUBMIT' }).

I am TypeScript nub and the idea arrived too late. Anyway I hope this self-discussion will be helpful.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RollingTL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant