dioxus/packages/jsinterpreter
2022-01-22 14:53:59 -05:00
..
interpreter.js wip: pass form data between web and desktop 2022-01-22 14:53:59 -05:00
interpreter.ts wip: pass form data between web and desktop 2022-01-22 14:53:59 -05:00
README.md feat: wire up both desktop and web 2022-01-13 22:51:01 -05:00
tsconfig.json feat: remove dioxus id on non-event elements 2022-01-21 15:06:57 -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.