xstateful icon indicating copy to clipboard operation
xstateful copied to clipboard

Does not work with XState > v4

Open cpetzel opened this issue 6 years ago • 2 comments

In version 4, XState changed the functions that are exported from the actions module. toEventObject was removed.

Here is the commit https://github.com/davidkpiano/xstate/commit/5dd4ca6f8a6e4d615a8db9fd310e228a8ed3bef8#diff-f41e9d04a45c83f3b6f6e630f10117fe

I forked XState and added back the missing functions, and then this lib works fine.

Thanks for the great library!

cpetzel avatar Jan 28 '19 08:01 cpetzel

@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?

avaragado avatar Jan 28 '19 08:01 avaragado

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...

cpetzel avatar Jan 28 '19 08:01 cpetzel