Hello :wave: I have the following code in my app: ...
# compose
h
Hello 👋 I have the following code in my app:
Copy code
fun Modifier.clickableWithoutRipple(onClick: () -> Unit): Modifier = composed {
    this then Modifier
        .clickable(
            indication = null,
            interactionSource = remember { MutableInteractionSource() },
            onClick = onClick
        )
}
But ktlint complains about the use of
composed{}
and it also complains if I replace it by
@Composable
, can I use Modifier.Node to solve this? If yes, can you give me a help with that?
e
you don't need
remember
, use
Copy code
Modifier.clickable(
    interactionSource = null,
👍 1
h
Thank you @ephemient