about summary refs log tree commit diff
path: root/web/tvixbolt/src
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2024-07-30T12·52+0300
committerclbot <clbot@tvl.fyi>2024-08-01T11·32+0000
commit87d4b00ff54b5726c7e26ed456f0c5285e506a6b (patch)
treee2d1c2fe7b4c4ada4845b372d0634b9670a46989 /web/tvixbolt/src
parent756539a59687f9abc9fef5fce50b5590c35a242f (diff)
chore(web/tvixbolt): Update to latest yew version r/8436
Change-Id: I8e89aea317f088142e8006b3a888ec6d28467b47
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12064
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'web/tvixbolt/src')
-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();
 }