Closed idmytro closed 1 year ago
Peculiar, I think I can reproduce this https://stackblitz.com/edit/vite-9wsjog?file=main.js
Cannot set properties of undefined (setting 'value')
Seems like listener
is called before the state
variable is initialized. Should be easy to fix :)
Okay so this was a regression caused by the last bug fix. @xstate/vue
doesn't have this bug because that other bug hasn't been patched. I'll try to fix this regression tomorrow, thanks for reporting!
I also get the error Cannot set properties of undefined (setting 'value')
with a Machine that uses Always transitions a lot, is there any possible workaround or update on this @ChrisShank ?
Fixed in v0.3.2
See the reproducer with the latest version https://stackblitz.com/edit/vite-vqm8hy?file=package.json
This simple machine doesn't work with xstate-vue2, but works with @xstate/vue