2
0
Fork 0
mirror of https://github.com/DioxusLabs/dioxus synced 2025-02-19 07:08:26 +00:00
dioxus/packages/interpreter
Jonathan Kelley 345dfd4214
Merge pull request from asaaki/update/wry-0-13
Update to wry 0.13; support IPC, devtool, and feature flags
2022-02-15 11:23:16 -05:00
..
src Merge pull request from asaaki/update/wry-0-13 2022-02-15 11:23:16 -05:00
Cargo.toml fix: remove code generation 2022-02-04 01:56:54 -05:00
README.md feat: it works everywhere 2022-02-02 01:08:59 -05:00

JS Interpreter

After diffing old and new trees, the Dioxus VirtualDom produces patches that are used to modify the existing Dom. We can send these patches anywhere - including targets without WASM support.

In renderers with support for JavaScript, we use the interpreter from this repository - written in TypeScript - to patch the Dom. This lets us circumvent any overhead on the Rust <-> Dom boundary and keep consistency in our interpreter implementation in web/webview targets.

For now - both Dioxus Web and Dioxus Desktop (webview) use the same interpreter code with tweaks.