-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(abstract history): allow router.back in abstract mode when 2 cons…
…ecutive same routes appear in history stack (#2771) * fix(AbstractHistory): Fix router.back in abstract mode Fix abstract mode's router.back() when 2 consecutive same routes appear in the history stack array fix #2607 * refactor(history): use an Error object when navigatin to the same place
- Loading branch information
1 parent
64785a9
commit 8910979
Showing
4 changed files
with
75 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export class NavigationDuplicated extends Error { | ||
constructor () { | ||
super('Navigating to current location is not allowed') | ||
Object.setPrototypeOf(this, new.target.prototype) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters