DEV Community

Discussion on: State Machines: Should this be a state, or in context?

Collapse
johnkazer profile image
John Kazer

I like the rule of thumb your penultimate paragraph implies. Data with infinite state possibilities go in context, those with finite possible state in the machine. To reflect the simpler version, being a finite state machine, I suppose!