Im seeing: `Modifier factory functions must use th...
# compose
z
Im seeing:
Modifier factory functions must use the receiver Modifier instance
for the snippet below. Yet both clickable/pointerInput does
this then modifier
under the hood. Bug, or am I missing something?
Copy code
private fun Modifier.interactions(
    onClick: (() -> Unit)?,
): Modifier {
    return when {
        onClick != null -> clickable(
            onClick = onClick,
        )

        else -> pointerInput(Unit) {}
    }
}
e
this then
is using the receiver
Modifier
, your code is not (directly)
so I think it's a false positive, but you could write it as
Copy code
this then when {
    onClick != null -> Modifier.clickable(...)
    ...
and make it look more normal
💪🏽 1