Multiple screens to share post-processing behavior
Hi there,
I'm curious how other folks handle this situation:
Presently, I have a number of screens that all complete some hardware process (ex. move motors) and then navigate back to the Home screen. I'm introducing some additional logic that, across all such screens, would add a conditional to determine what next screen to display (ex. Critical Battery screen if battery is low, ... , with the Home screen being the 'else' option should none of the other conditions be satisfied).
I don't want to duplicate and maintain this logic across all of the screens - where is a good place to put this?
Thanks,
Julia
