3 ms·
It uses IPC to give the WebView patches of what to do. There is a wee bit of JS there that parses the IPC and applies the patch to the DOM. Here's the code: ht
by terhechte 4y ago
It uses IPC to give the WebView patches of what to do. There is a wee bit of JS there that parses the IPC and applies the patch to the DOM.
Here's the code:
https://github.com/DioxusLabs/dioxus/tree/master/packages/interpreter https://github.com/DioxusLabs/dioxus/tree/master/packages/in...
- lucasyvas 4y agoThis explains how Dioxus also has a LiveView mode - that sounds exactly how LiveView works.
- fastball 4y agoSo is my parent wrong and my grandparent correct? Because that is what I thought as well. DOM mutations are still happening via JS, so while the business logic might be in Rust, the mutations are still bounded by the speed of JS.
- demonthos 4y agoDOM mutations still happen in JS, they are just send from native-rust code. It is exactly like a liveview with a local server + webview wrapper