ParentFull threadrojoca·This is what state machines/charts are for. They prevent you from entering invalid states, and take responsibility for all changes in state.View on HN