UI Layer and State Ownership
The UI layer displays information and captures user actions. In Compose, composable functions render interface elements, while screen-level state holders, commonly ViewModels, expose the state required by the interface. Unidirectional data flow keeps ownership understandable: state moves toward the interface; user actions travel back to the responsible state holder or business operation. This reduces the temptation to let individual UI components independently change shared records. Lifecycle-aware observation also matters because collecting data while a screen is not active may waste resources or cause unexpected updates. The UI layer guidance explains these responsibilities.


