Find Flow<T> / StateFlow<T> parameters on @Composable functions

Proprietary

Passing a Flow<T> into a @Composable shifts collection from a LaunchedEffect to the consumer — but if the caller re-creates the Flow per recomposition, collection restarts every time. Prefer collecting at the call site and passing the resulting State<T> (or T directly).

org.openrewrite.kotlin.compose.FindFlowParameterOnComposable$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.compose.FindFlowParameterOnComposable$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.