Commit 1bedcc1
authored
fix: fix a
When loading a non-SSR page and pressing the browser's back button while the page is still loading, it's possible for `current.url` to still be the default value of `null`, which then causes the `popState` function to throw. We therefore guard against that. Fixes #12924popState race-condition (#12925)1 parent e201fa9 commit 1bedcc1
File tree
2 files changed
+6
-1
lines changed- .changeset
- packages/kit/src/runtime/client
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2330 | 2330 | | |
2331 | 2331 | | |
2332 | 2332 | | |
2333 | | - | |
| 2333 | + | |
2334 | 2334 | | |
2335 | 2335 | | |
2336 | 2336 | | |
| |||
0 commit comments