presentWithLifecycle
inline fun <UiState : CircuitUiState> Presenter<UiState>.presentWithLifecycle(key: String? = null, isActive: Boolean = LocalRecordLifecycle.current.isActive): UiState(source)
Presents the UI state when the lifecycle is resumed, otherwise will replay the last emitted UI state.
The CircuitUiState class returned by the Presenter is required to implement equals and hashCode methods correctly, otherwise this function can create composition loops.
Parameters
key
A unique key for the pausable state
isActive
Whether the presenter is active or not.