UiEffect

interface UiEffect

Something the UI must do once and then forget: show a message, navigate, vibrate.

An effect is not state. If the screen were drawn again from scratch and should still show it, it belongs in the UiState instead.