rsnext/packages/next/next-server
Joe Haddad dbe1e626f8
fix(experimental scroll): use sessionStorage instead of history (#20633)
This pull request adjusts our experimental scroll restoration behavior to use `sessionStorage` as opposed to `History#replaceState` to track scroll position.

In addition, **it eliminates a scroll event listener** and only captures when a `pushState` event happens (thereby leaving state that needs snapshotted).

These merely adjusts implementation detail, and is covered by existing tests:
```
test/integration/scroll-back-restoration/
```

---

Fixes #16690
Fixes #17073
Fixes #20486
2020-12-31 16:08:12 +00:00
..
lib fix(experimental scroll): use sessionStorage instead of history (#20633) 2020-12-31 16:08:12 +00:00
server Ensure href is updated for locale domain (#20631) 2020-12-31 08:07:51 +00:00