Hacker News new | ask | show | jobs
by acjohnson55 2512 days ago
I don't think this a duality in the usual sense. It's just an abstraction leakage. It's not clear to me that this is a large-scale problem. But I can imagine it would be helpful for some use cases. Probably just not helpful enough for such a major change.
1 comments

We need a notion of lifecycle independent of reconciliation. The definition provided in View Tree Duality is natural, essentially locally determined, and efficient (i.e O(n)).

Without an independent notion of lifecycle, React essentially cannot improve it’s reconciliation algorithm.