We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab0a28d commit 33a13ccCopy full SHA for 33a13cc
src/std/router.js
@@ -27,8 +27,9 @@ export var WithRouter = ({prefix, initial: href}) => {
27
var updateRoute = () => {
28
if (href === window.location.href) return
29
href = window.location.href
30
- redraw()
+ var prevUrl = currentUrl
31
updateRouteWithHref()
32
+ if (currentUrl.href !== prevUrl.href) redraw()
33
}
34
35
var set = (path, {replace, state} = {}) => {
0 commit comments