state

val state: StateFlow<State>(source)

Observable UI state stream.

Always holds the latest state and replays it immediately to new collectors.

Collect this in a KScreen or directly in a Composable:

val state by viewModel.state.collectAsStateWithLifecycle()