https://kotlinlang.org logo
#compose
Title
# compose
c

Chris Fillmore

03/14/2023, 3:34 PM
Question, does anybody know if the ReactJS concept of “reconciliation” is equivalent to the Compose concept of “recomposition”? I work on both Compose and ReactJS projects and see similarities, but I don’t have deep understanding of either. https://reactjs.org/docs/reconciliation.html
s

shikasd

03/14/2023, 3:40 PM
Reconciliation is closer to "skipping", as in Compose the tree is a side effect, not the result of a function. So instead of re-rendering all subtree and diffing it, Compose can just skip execution if the parameters are the aame
c

Chris Fillmore

03/14/2023, 3:43 PM
Thanks @shikasd. Time for me to read this I think https://jorgecastillo.dev/book/
2 Views