Does not work with XState > v4
cpetzel opened this issue · comments
In version 4, XState changed the functions that are exported from the actions
module.
toEventObject
was removed.
Here is the commit
statelyai/xstate@5dd4ca6#diff-f41e9d04a45c83f3b6f6e630f10117fe
I forked XState and added back the missing functions, and then this lib works fine.
Thanks for the great library!
@cpetzel Now that xstate v4 includes its own interpreter, you might be better off without xstateful. Do you have a use case that xstate v4 doesn't cover but xstateful does?
I am just getting started with XState. I like the fact that this lib lets you change the extended state easily. Good point that I can probably just role my own interpreter that manages extended state similar to this library...