https://kotlinlang.org logo
Title
a

Alex

07/11/2022, 12:08 PM
Instead of annotating a
List
parameter as
@Stable
, could I also just use an
ImmutableList
from https://github.com/Kotlin/kotlinx.collections.immutable ? Will Jetpack Compose understand?
s

Stylianos Gakis

07/11/2022, 12:15 PM
Don’t remember where I read it but yes, it should infer it as stable.
a

Alex

07/11/2022, 12:24 PM
Fantastic, thanks for the quick enlightenment guys 👍
❤️ 1
p

Paul Woitaschek

07/11/2022, 9:59 PM
Wait the last time I checked you couldn't annotate a list parameter as stable