12 ms·
Yes! Extremely same, but with Vue instead of React. In the last project I worked on, XState was a late addition, so it didn't control the whole application, bu
by candeira 7y ago
Yes!
Extremely same, but with Vue instead of React. In the last project I worked on, XState was a late addition, so it didn't control the whole application, but the part I wrote in it was bug free from the start.
My plan for any future JS/frontend project is to design the whole application's business logic around XState, and use Vue/React/Svelte/Whatever just for the rendering part.
- james_s_tayler 7y agoThis sounds very interesting! Do you have a link to a repo or tutorial / good reference example?
- HerrBertling 7y agoOh, that would be awesome! I’m very interested as well :)
- candeira 7y agoNo, sorry. This was contract work, and is closed source.
- james_s_tayler 7y agoThat's ok. Anything publicly available you used as reference materials? I had a read through that site, but id love to see what's considered a good example in code.
- candeira 7y agoFrom memory, one of the things we did was set up an event bus to communicate between xstate and Vuex. We only used the xstate.org.js and vuejs.org documentation, which are both very good. Sorry I can't help further.