Jul 31, 2023
State management like this looks very pretty in a playground, but actual orders and order states occur over a period of time, which means that orders are, by necessity, persisted and reloaded to/from an external store.
Further, transitions from a state to another would never be simple vars, but mutating functions that need additional information like ship date, tracking number, and so on.
Just not sure how this would scale up in a production environment.