Find state.value reads inside a @Composable

Proprietary

Reading state.value works but loses the by delegate ergonomics — and worse, with remember { mutableStateOf(...) } plus .value, it is easy to forget the remember and create a fresh MutableState per recomposition. Prefer val state by remember { mutableStateOf(...) } so the type checker keeps the snapshot read implicit.

org.openrewrite.kotlin.compose.FindStateValueRead$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.compose.FindStateValueRead$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.