rsnext/packages/next/client
Wouter Raateland b49717f8db
Allow scroll prevention on hash change (#31921)
* Allow scroll prevention on hash change

Currently, `scrollToHash` is performed on every hash change, even when this change is caused by `<Link scroll={false} {...props} />`.
This change prevents scrolling in this case and allows users to specify the desired scrolling behavior in the router's `hashChangeComplete` event.

* Add test case and apply fixes

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-02-06 18:38:55 -06:00
..
dev Encapsulate routing and initial hydration (#33875) 2022-02-02 09:08:16 -06:00
portal Use SWC to compile Next.js core server files (#27167) 2021-07-14 18:12:04 +00:00
streaming Group streaming experimental apis (#33878) 2022-02-02 13:42:14 +00:00
head-manager.ts correctly assess node equality when nonce attribute is present (#27573) 2021-11-10 19:31:32 -06:00
image.tsx fix(next/image): render valid html according to W3C (#33825) 2022-01-31 19:13:46 -05:00
index.tsx Encapsulate routing and initial hydration (#33875) 2022-02-02 09:08:16 -06:00
link.tsx Allow scroll prevention on hash change (#31921) 2022-02-06 18:38:55 -06:00
next-dev.js Encapsulate routing and initial hydration (#33875) 2022-02-02 09:08:16 -06:00
next.js Use SWC to compile Next.js core server files (#27167) 2021-07-14 18:12:04 +00:00
normalize-trailing-slash.ts fix basepath trailing slash (#15200) 2020-07-15 23:53:31 +00:00
page-loader.ts Fix RSC link navigation (#32303) 2021-12-09 14:45:22 +01:00
performance-relayer.ts Experimental: hook version of reportWebVitals (#28769) 2021-09-24 18:35:33 +00:00
request-idle-callback.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
route-announcer.tsx Give priority to document.title over h1 when announcing page change (#31147) 2021-11-08 14:58:21 +00:00
route-loader.ts Improve and refactor some types (#31704) 2021-11-25 10:46:00 +01:00
router.ts Custom app for server components (#33149) 2022-01-14 13:01:00 +00:00
script.tsx next/script fix duplicate scripts (#28428) 2021-08-24 11:07:38 -05:00
use-intersection.tsx Add lazyRoot optional property to next/image component (#33290) 2022-01-25 14:54:15 +01:00
with-router.tsx Update to latest babel versions (#28174) 2021-08-17 09:18:08 +02:00