Hey folks! Working on something and got a question...
# compose
i
Hey folks! Working on something and got a question for you all - what are the biggest “gotchas” you experienced using Compose, i.e. what are the little things causing bugs that you tend to forget about? is it accidental recomposition? layouting issues? effects? performance problems? let me know in the thread!
a
Using any “non mutable” kotlin collection type like List, Map, etc is not considered stable by compose and there are currently zero lint warnings about this that come out of the box!
i
good one! adding that to the list!
s
Same goes for lambdas. It's not immediately obvious whether a given lambda is stable or not.
l
Using lambdas in custom modifier causes recomposition every time the modfier chain gets created, an issue for these lambas not being remembered.
f
Using any “non mutable” kotlin collection type like List, Map, etc is not considered stable
that applies to read only too (
List
), you have to use the immutable collections library
i
Thanks folks! filling the list nicely!