Decompose
Decompose copied to clipboard
Investigate if we can add checks to prevent passing the parent ComponentContext to children
Maybe a compiler plugin. See the discussion: https://kotlinlang.slack.com/archives/C03H3N51SKT/p1707471641114349.
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.
Couldn't come up with a decent solution with good protection and not too complex. Closing this for now.