fix hydrate example
This commit is contained in:
1 parent
9ff5d24d42
commit
de0c34ec60
2 files changed
+2
-1
No files matched your search
@@ -75,3 +75,4 @@ wasm-logger = "0.2.0"
|
||||
gloo-timers = "0.2.3"
|
||||
gloo-dialogs = "0.1.1"
|
||||
dioxus-web = { path = ".", features = ["hydrate"] }
|
||||
tracing-wasm = "0.2.1"
|
||||
@@ -43,7 +43,7 @@ fn Bapp(cx: Scope) -> Element {
|
||||
|
||||
fn main() {
|
||||
console_error_panic_hook::set_once();
|
||||
wasm_logger::init(wasm_logger::Config::new(log::Level::Trace));
|
||||
tracing_wasm::set_as_global_default();
|
||||
|
||||
let mut dom = VirtualDom::new(app);
|
||||
let _ = dom.rebuild();
|
||||
|
||||
Reference in new issue
Block a user