composeState

Observes a module's state as a Compose State.

This is the primary API for observing module state in Composables. The returned State automatically updates when the module state changes, triggering recomposition.

Example:

@Composable
fun CounterDisplay() {
val state by composeState<CounterState>()
Text("Count: ${state.count}")
}

Return

Compose State of the requested state type