Navigation state is also UI state. What screen to display at any time is literally UI state. Don’t think of it differently.
0 reposts0 likes
Navigation state is also UI state. What screen to display at any time is literally UI state. Don’t think of it differently.
0 reposts0 likes
I think it’s better to define State as the strict outcome of business logic, while the representation of that state belongs entirely to the UI layer. eg if VM emits error: Throwable?, that is business outcome. UI's job is to interpret that state and decide the mechanism; a Dialog/Snackbar,new screen