From 324a6cfefc7ae5e96b92cfe0fcf21f067770027e Mon Sep 17 00:00:00 2001 From: Connor Galea <28243483+kryesh@users.noreply.github.com> Date: Fri, 12 Apr 2024 09:19:34 +1000 Subject: [PATCH] Update nav_options clone --- router/src/hooks.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/router/src/hooks.rs b/router/src/hooks.rs index 7a9babd42c..a9b3b97894 100644 --- a/router/src/hooks.rs +++ b/router/src/hooks.rs @@ -76,7 +76,6 @@ where let set = SignalSetter::map(move |value: Option| { let mut new_query_map = query_map.get(); - let nav_options = nav_options.clone(); match value { Some(value) => { new_query_map.insert(key.to_string(), value.to_string()); @@ -89,7 +88,7 @@ where let path = location.pathname.get_untracked(); let hash = location.hash.get_untracked(); let new_url = format!("{path}{qs}{hash}"); - navigate(&new_url, nav_options); + navigate(&new_url, nav_options.clone()); }); (get, set)