add a noop evaluator to the ssr renderer

This commit is contained in:
Evan Almloff committed 2023-11-05 08:32:39 -06:00
1 parent c18f911429
commit b9554fd744
6 files changed
+51

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ pub mod incremental;
#[cfg(feature = "incremental")]
mod incremental_cfg;
pub mod eval;
pub mod renderer;
pub mod template;
@@ -42,6 +43,7 @@ pub fn render_lazy(f: LazyNodes<'_, '_>) -> String {
};
let mut dom = VirtualDom::new_with_props(lazy_app, props);
crate::eval::init_eval(dom.base_scope());
_ = dom.rebuild();
Renderer::new().render(&dom)