ParentFull threadjohtso·I'd say pull that logic out of your components and put it in some central place like an XState machine exposed to your components through Context.View on HN