diff --git a/web/src/page/search.rs b/web/src/page/search.rs index accad30..b81708b 100644 --- a/web/src/page/search.rs +++ b/web/src/page/search.rs @@ -9,6 +9,8 @@ use crate::prelude::*; pub fn SearchPage() -> impl IntoView { let auth = use_context::().expect("missing auth context"); + let query = use_query_map().get().get("q").cloned().unwrap_or_default(); + let user = create_local_resource( move || use_query_map().get().get("q").cloned().unwrap_or_default(), move |q| { @@ -33,7 +35,10 @@ pub fn SearchPage() -> impl IntoView { } ); + view! { + #{query} +