Recently, I delved into the XState documentation and decided to explore the Reddit sample provided in the official guide. You can find it here:
As I attempted to upgrade the sample implementation to Vue 3 following the work of Chris Hannaby, I encountered some difficulties.
Upon running the app, after selecting an item from the list, the component appeared to be stuck at "Loading", despite the subreddit interpreter's state being correctly set to 'loaded' as observed in Vue Dev Tools.
https://i.sstatic.net/aTSof.png
Interestingly, if you choose a different item in the list and then return to the previous one, it functions properly and loads the list as expected.
Here is Chris's codesandbox showcasing the working example in Vue 2:
https://codesandbox.io/s/xstate-vue-reddit-example-with-actors-uvu14
And here is my attempt at forking it in Vue 3, unfortunately with issues:
https://codesandbox.io/s/xstate-vue-reddit-example-with-actors-forked-1pm0mp
Being relatively new to both Vue and XState, any guidance or assistance would be much appreciated.