avaragado / xstateful-react

Use xstateful with React, accessing states and activities from multiple statecharts anywhere in your app
MIT License
30 stars 2 forks source link

Utilize Redux Devtools #2

Open ShMcK opened 6 years ago

ShMcK commented 6 years ago

I believe xstateful could have more integrated devtools in the future, but for now, there is a quick and easy devtools integration.

I believe Redux Devtools could be setup to display both state and xstate, along with all actions fired.

As an example of how Redux Devtools can be setup for use with xstate, see React-Automata: https://github.com/MicheleBertoli/react-automata/blob/master/src/withStatechart.js#L35-L64

avaragado commented 6 years ago

Good idea. I'll take a look, thanks.