mrmans0n / compose-rules

Lint rules for ktlint/detekt aimed to contribute to a healthier usage of Compose. Actively maintained and evolved fork of the Twitter Compose rules.
https://mrmans0n.github.io/compose-rules
Other
550 stars 21 forks source link

Remove context receivers #326

Closed mrmans0n closed 3 weeks ago

mrmans0n commented 3 weeks ago

Kotlin 2.0.20 warns about context receiver deprecation, so let's get rid of them preemptively 😢

This makes me so sad, because I liked context receivers. At some point in the future we'll get context parameters (which look like a good replacement for the usages I typically gave context receivers) but there's going to be a time in between context receivers are deprecated and context params are available, so I'm gonna go the boring route and turn them all into function params :sigh:

emotional-damage