uniflow-core / io.uniflow.core.flow / onState

onState

inline fun <reified T : UIState> StatePublisher.onState(code: (T) -> Unit): Unit

Let execute block on given state T if not null