1.3.0 fixed a lot a false positives of ReusedModifierInstance. But there is one that it wasn't fixed yet. I created a test case to make it easy to reproduce it:
@Composable
fun Extra(a: @Composable (Modifier) -> Unit) {}
@Composable
fun Test(
modifier: Modifier = Modifier,
) {
Column(modifier) {
Extra { modifier ->
Text("Hi", modifier)
}
}
}
The modifier that I'm using on Text is not the same that the one defined on Test.
1.3.0 fixed a lot a false positives of
ReusedModifierInstance
. But there is one that it wasn't fixed yet. I created a test case to make it easy to reproduce it:The
modifier
that I'm using onText
is not the same that the one defined onTest
.