UiState
interface UiState
The state of one screen: everything the UI needs to draw it, as one immutable value.
Declare it per screen, usually as a sealed type with a shape for each thing the screen can show (loading, content, failure), so that combinations that make no sense cannot be built.