work on fixing ssr

This commit is contained in:
Evan Almloff committed 2024-01-10 09:56:03 -06:00
1 parent d8e79b656b
commit 5b2b0c43bd
5 files changed
+21 -37

No files matched your search

+3 -3
View File
@@ -1,12 +1,12 @@
use async_trait::async_trait;
use dioxus_core::ScopeState;
use dioxus_core::ScopeId;
use dioxus_html::prelude::{EvalError, EvalProvider, Evaluator};
use std::rc::Rc;
/// Provides the SSREvalProvider through [`cx.provide_context`].
pub fn init_eval(cx: &ScopeState) {
pub fn init_eval() {
let provider: Rc<dyn EvalProvider> = Rc::new(SSREvalProvider {});
cx.provide_context(provider);
ScopeId::ROOT.provide_context(provider);
}
/// Reprents the ssr-target's provider of evaluators.