Skip to content

Commit 41ad9af

Browse files
author
vvo
committed
fix(url): clear timeout on pop
1 parent 66a6812 commit 41ad9af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/url-sync.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class URLSync {
128128
}
129129

130130
onPopState(helper, fullState) {
131+
clearTimeout(this.urlUpdateTimeout);
131132
// compare with helper.state
132133
const partialHelperState = helper.getState(this.trackedParameters);
133134
const fullHelperState = assign({}, this.originalConfig, partialHelperState);

0 commit comments

Comments
 (0)