about summary refs log tree commit diff
path: root/web/tvixbolt/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'web/tvixbolt/src/lib.rs')
-rw-r--r--web/tvixbolt/src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/tvixbolt/src/lib.rs b/web/tvixbolt/src/lib.rs
index 87627619d79d..a2bfeb0a5dd1 100644
--- a/web/tvixbolt/src/lib.rs
+++ b/web/tvixbolt/src/lib.rs
@@ -12,7 +12,8 @@ use web_sys::HtmlDetailsElement;
 use web_sys::HtmlTextAreaElement;
 use yew::prelude::*;
 use yew::TargetCast;
-use yew_router::{prelude::*, AnyRoute};
+use yew_router::history::BrowserHistory;
+use yew_router::history::History;
 
 #[derive(Clone)]
 enum Msg {
@@ -117,7 +118,7 @@ impl Component for Model {
             Msg::NoOp => {}
         }
 
-        let _ = BrowserHistory::new().replace_with_query(AnyRoute::new("/"), self.clone());
+        let _ = BrowserHistory::new().replace_with_query("/", self.clone());
 
         true
     }
@@ -314,5 +315,5 @@ fn eval(model: &Model) -> Output {
 
 #[wasm_bindgen]
 pub fn main() {
-    yew::start_app::<Model>();
+    yew::Renderer::<Model>::new().render();
 }