I am using xstate together with vuex in my application:
vuexhandles the user, api calls, response items, etc.xstatehandles mainly complex form interactions.
Due to the reason, that complex forms contain multiple components, which communicate with each other I have to implement xstate not on a component level, but inside vuex. Inside the xstate visualizer it seems to work:
I can switch between the state, but in the real application it can't go back to its initial state (idle) and then stay there. It always transitions back to the next one. I don't know what I am doing wrong, but I have console logged the formState getter and the output looks like this:
formState idle
formState createImageContent
(it immediately switches away from idle state)
Here is the basic example of the implementation: https://codesandbox.io/s/boring-shape-b4lgk

