You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since i updated to nextjs 14.0.2+ (up to latest) i noticed that client components that use the useLocale() hook and contain Link component are behaving weirdly (sometimes even non-responsive) , upon further inspection i noticed they are being rapidly re-rendered when i repeatedly hover over the Links.
I created a simple reproduction sandbox, this can be reproduced only with production build (i believe it has to do with the fact Link prefetching is enabled only in prod build). This behaviour is not reproducible on 14.0.1 or previous nextjs versions.
Mandatory reproduction URL (CodeSandbox or GitHub repository)
Description
Since i updated to nextjs 14.0.2+ (up to latest) i noticed that client components that use the useLocale() hook and contain Link component are behaving weirdly (sometimes even non-responsive) , upon further inspection i noticed they are being rapidly re-rendered when i repeatedly hover over the Links.
I created a simple reproduction sandbox, this can be reproduced only with production build (i believe it has to do with the fact Link prefetching is enabled only in prod build). This behaviour is not reproducible on 14.0.1 or previous nextjs versions.
Mandatory reproduction URL (CodeSandbox or GitHub repository)
CodeSandbox
Reproduction description
Steps to reproduce:
Expected behaviour
Hovering the links shouldn't trigger the re-render & console.log() over and over
The text was updated successfully, but these errors were encountered: