Could compose web be implemented without a virtual DOM? Because vdom is one of the reasons why I eschew frameworks like React. It makes development easier but produces slower, more memory intensive applications.
Daan
11/29/2020, 3:14 PM
I had no idea Compose is being developed by the people who wrote React! I'm glad you agree with me and are now working on something even better. Compose sounds really interesting, at some point I'm going to take a deep dive and learn how it works internally. Declarative UI is the obvious way forward, but the right way to do it isn't very obvious to me.
Daan
11/29/2020, 3:18 PM
Does Compose deal with the issue you have in frameworks like JavaFx with complex graphs of observables and temporary invalid state? In the React world, Mobx for example solves this by explicitly modelling the dependency graph and figuring out the correct order to propagate changes for you.
j
jim
11/29/2020, 3:26 PM
Yes, Compose behaves very similarly to Mobx in that sense.
d
Daniele B
11/29/2020, 3:35 PM
@Daan in Kotlin, state management is made very easy by something called StateFlow. It fits perfectly with declarative UIs, and it’s multi-platform! This means it can seamlessly apply to both JetpackCompose and SwiftUI.
r
rsktash
12/18/2020, 3:57 PM
@jim hi is there any news regarding compose web milestone?