Commit 7186fe8b authored by David Street's avatar David Street Committed by Naoyuki Kanezawa

Only update history state if url differs. (#172)

parent 77739f4d
...@@ -108,7 +108,10 @@ export default class Router { ...@@ -108,7 +108,10 @@ export default class Router {
throw err throw err
} }
window.history[method]({ route }, null, url) if (getURL() !== url) {
window.history[method]({ route }, null, url)
}
this.route = route this.route = route
this.set(url, { ...data, props }) this.set(url, { ...data, props })
return true return true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment