mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 12:43:08 +00:00
fix navigator
This commit is contained in:
parent
39e89c1fac
commit
4062e232d9
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue