mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
Merge pull request #1274 from Demonthos/fix-navigator
Fix navigator push/replace route
This commit is contained in:
commit
25a2abfa08
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…
Add table
Reference in a new issue