refCountStateFlow

abstract val refCountStateFlow: StateFlow<STATE>

A version of stateFlow ref-counted for the repeatOnSubscription operator. Do not use when subscribing to state updates within your ContainerHost.

A StateFlow of state updates. Emits the latest state upon subscription and serves only distinct values (through equality comparison).