I cannot see any documentation explaining when fun...
# compose
m
I cannot see any documentation explaining when function types are considered stable. I can see from compiler reports that they typically are, but I assume that should not be the rule.
g
A common misconception is that lambdas with unstable captures are themselves unstable objects. This is not true, lambdas are always considered stable, however as they were not memoized and reallocated during recomposition, they lead to composables that were not skipped due to unequal parameters.
https://github.com/JetBrains/kotlin/blob/483e5f5d94988fa85ad90434f8d7efb2700267c2/plugins/compose/design/strong-skipping.md
👍 1
🌟 1
m
Thanks 🙂
t
The documents refers to "Lambda" specifically, I wonder if it is the same for anonymous functions 🤔
And what about function types in general?
g
I'd say it does not matter. You could doble check decompiling the .class file of a simple Composale and see how things change when adding
@DontMemoize