Skip to content

Commit

Permalink
Update nav_options clone
Browse files Browse the repository at this point in the history
  • Loading branch information
kryesh committed Apr 11, 2024
1 parent a1287e8 commit 324a6cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions router/src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ where

let set = SignalSetter::map(move |value: Option<T>| {
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());
Expand All @@ -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)
Expand Down

0 comments on commit 324a6cf

Please sign in to comment.