rsnext/packages/next/next-server/lib/router
Joe Haddad 7646921911
fix(router): consistent scroll behavior for Link/Router#push (#20606)
This pull request makes `Router#push` and `Router#replace` function identically to `<Link />`, i.e. reset scroll when the new render is complete.

Users can opt out of this new behavior via:
```tsx
const path = '/my-page'
router.push(path, path, { scroll: false })
```

---

Fixes #3249
2020-12-30 16:10:59 +00:00
..
utils Ensure path encoding is handled consistently for prerendered pages (#19135) 2020-12-28 20:08:58 +00:00
router.ts fix(router): consistent scroll behavior for Link/Router#push (#20606) 2020-12-30 16:10:59 +00:00