Merge pull request #1612 from ealmloff/ssr-eval

Add a noop evaluator to the ssr renderer
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2023-12-06 21:17:36 -08:00
commit ae8eaf80a2
6 files changed
+51

No files matched your search

+2
View File
@@ -45,6 +45,8 @@ impl SsrRendererPool {
.expect("couldn't spawn runtime")
.block_on(async move {
let mut vdom = VirtualDom::new_with_props(component, props);
// Make sure the evaluator is initialized
dioxus_ssr::eval::init_eval(vdom.base_scope());
let mut to = WriteBuffer { buffer: Vec::new() };
// before polling the future, we need to set the context
let prev_context =