:question: What’s the difference between `@Stable`...
# compose
t
What’s the difference between 
@Stable
 and 
@StableMarker
? 🤔🧵
c
@StableMarker
is a meta-annotation, which is added to annotations which indicate a stability of a type. Apps should not use it directly i think. 🙂
y
@StableMarker
is applied to other annotations to indicate that any type annotated with this other annotations is stable.
@Stable
annotation is in itself annotated with
@StableMarker
Stability means: • Calls to equal has the same result of any two instances with the same content • Composition is aware when public properties change • All public properties of the annotated type is stable Source Jetpack compose internals book by Jorge Castillo and Andrei Shikov
t
Understood. Thanks guys 🤝