I'm probably missing the reason the compiler is an...
# compose
c
I'm probably missing the reason the compiler is angry about using the
composed
modifier here.
Copy code
@SuppressLint("UnnecessaryComposedModifier")
@Stable
fun Modifier.clickableNoIndication(onClick: () -> Unit): Modifier = composed {
    clickable(onClick = onClick, indication = null, interactionSource = remember { MutableInteractionSource() })
}
I have to add the suppression otherwise it complains. But if I don't use it, I can't use remember. Am I missing something simple?
1
l
What version of Compose are you using? There was an issue in the IDE with 1.0, but it should be fixed in 1.1
👍 2
c
ah, yep. We're using 1.0.1. It works with the 1.1 alpha. Thanks Louis!