fix navigator

This commit is contained in:
Evan Almloff committed 2023-08-01 10:21:16 -07:00
1 parent 39e89c1fac
commit 4062e232d9
1 file changed
+2 -2
+2 -2
View File
@@ -178,7 +178,7 @@ impl RouterContext {
match target {
NavigationTarget::Internal(p) => {
let mut state = self.state_mut();
state.history.push(Rc::new(p))
state.history.push(p)
}
NavigationTarget::External(e) => return self.external(e),
}
@@ -195,7 +195,7 @@ impl RouterContext {
{
let mut state = self.state_mut();
match target {
NavigationTarget::Internal(p) => state.history.replace(Rc::new(p)),
NavigationTarget::Internal(p) => state.history.replace(p),
NavigationTarget::External(e) => return self.external(e),
}
}