DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
20.68k stars 798 forks source link

Qwik like hydration feature? #3062

Open kolinfluence opened 2 days ago

kolinfluence commented 2 days ago

as titled

ealmloff commented 2 days ago

I would consider this out of scope for Dioxus fullstack (at least for the next few years) because it is both very web specific and qwik's implementation of resumability requires additional annotations that would be out of place in a desktop app. It would require a lot of work to get something like reusability working in a rust framework. You need to track what values are moved into closures which would likely require a compiler plugin. Bundling splitting is a prerequisite of reactivity. It might make sense to revisit this once bundle splitting is stable

There is a very interesting discussion on the tradeoffs of reusability and how it could be applied to a WASM framework in https://github.com/leptos-rs/leptos/issues/12.