What’s the difference between a reusable node and ...
# compose
m
What’s the difference between a reusable node and a reusable group?
s
Reusable group is a group that reuses its nodes Reusable node is the node being reused
m
@shikasd Ah, a reusable group is a node in a composition that a reusable subtree is rooted at populated with reusable nodes? Thanks! Could you also please have a look at 1. https://kotlinlang.slack.com/archives/CJLTWPH7S/p1779106173504689 2. https://kotlinlang.slack.com/archives/CJLTWPH7S/p1779108330852259 3. and https://kotlinlang.slack.com/archives/CJLTWPH7S/p1779176668703439?
s
"reusing" in Compose basically entails taking everything that is in composition (every
remember
and node), considering every
remember
as removed and running recomposition on that function. Every reusable node will be updated with new parameters, every
remember
will be re-executed, as runtime considers it as not present.