hawklike
05/22/2025, 9:07 AM@Stable annotation anymore? From docs:
> With strong skipping enabled, all restartable composable functions become skippable.
If I understand it correctly, almost all functions are restartable. So, when should I use @Stable now, since Kotlin 2.0.20? Thank you 🙏MR3Y
05/22/2025, 11:03 AMequals instead of instance equality (===)Colton Idle
05/22/2025, 1:53 PMhawklike
05/22/2025, 4:14 PMMR3Y
05/22/2025, 5:00 PM@Stable here in this case, you make a contract with the compiler that this parameter's value should be considered the same unless its structure/content changes (Assuming also you're correctly adhering to equals contract).
but in practice, this is kind of premature optimization IMO and you don't need it until you start to see signs of degraded performance due to recompositions.