Decompose icon indicating copy to clipboard operation
Decompose copied to clipboard

Investigate if we can add checks to prevent passing the parent ComponentContext to children

Open arkivanov opened this issue 1 year ago • 1 comments

Maybe a compiler plugin. See the discussion: https://kotlinlang.slack.com/archives/C03H3N51SKT/p1707471641114349.

arkivanov avatar Feb 11 '24 10:02 arkivanov

It can also be a detekt/lint check.

Maybe a package with such checks can be useful for even for more recommendations, best practices, and warnings. See compose-rules as an example.

amal avatar Feb 15 '24 11:02 amal

Couldn't come up with a decent solution with good protection and not too complex. Closing this for now.

arkivanov avatar Jul 27 '24 22:07 arkivanov