XState: Submachines vs. Transient States w/ Guards
I've got a workflow to implement that has a lot of states that simply get skipped if certain conditions are true. It seems like there are two ways to model this: One way would set them all up as sequential submachines, each with one transient entrance state, and an advance to…
XState: dependency injection to specify targets?
I'm building an app that needs to be reconfigurable such that a few sub-machines have multiple outlets (not just a single onDone) and I need to be able to specify their targets via dependency injection so that they can vary based on which parent machine the sub-machine is…
Decoupling data from machines
Hello! Wondering how best to deal with decoupling API calls & whatnot from machines within the context of React. As an example, I have a pretty complicated screen for recording and uploading videos. xstate was the perfect way to model the interactions & states of the screen, and…
Feedback request: Work-In-Progress parallel state machine
Hi folks, I'm thinking thru my first xstate design for an embedded podcast player, and I'm trying to work out how to send event between parallel state nodes. https://xstate.js.org/viz/?gist=6c6221acbacdd94c1c350f2debd819d7 Here's what I'm trying to do: …
Pattern for accessing invoked machines in React components?
I'm trying to do something fairly simple (or at least I thought), but can't figure out how. I've got several machines (one for each of my application screens) + one "main" machine that invokes them. All I want to do is to: …
Autocomplete links on site do not work
When you click on links from the Algolia autocomplete search control, you are taken to a URL with an extra /docs in the path which results in a broken link. If you remove the duplicated path, the link works. Repro 1. Go to https://xstate.js.org …
Using the actor model for UI development
Just found this master thesis: "Uselets: UIs using Actors as an Abstraction for Composable Communicating Components", it looks interesting, please, let me know your opinions about it. I was searching for some literature about using the actor model in UI development. If you have…