Fitz UI components now compile to both server-side HTML and client-side WebAssembly
The Fitz framework has achieved isomorphic UI rendering, allowing all 38 companion UI components written in its .fitzv format to target both server-side rendering and client-side WebAssembly without rewriting code. A single .fitzv file can be compiled via two backends: the classic SSR path that produces HTML strings for LiveViews, and a new wasm-client target that builds real DOM using web-sys in the browser. Three key technical barriers were resolved along the way, including raw HTML injection, list-driven component data passing, and helper-body list construction. Previously, a parallel hand-written client version was maintained separately for the component gallery, but that duplication has now been eliminated. The live gallery currently runs 22 companion components compiled to WebAssembly, with Pager and ConfirmDialog also fully functional client-side after gaining support for fall-through event forwarding.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in