Re:The World of Statecharts
by james_s_tayler on Tuesday December 24, 2019 @12:09AM
(#21870031)
This sounds very interesting! Do you have a link to a repo or tutorial / good reference example?
No, sorry. This was contract work, and is closed source.
Re:The World of Statecharts
by james_s_tayler on Wednesday December 25, 2019 @08:08AM
(#21878352)
That'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.
From 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.
Re:The World of Statecharts
by HerrBertling on Tuesday December 24, 2019 @06:59AM
(#21871423)
Oh, that would be awesome! I’m very interested as well :)
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.