Open
Description
Link to the code that reproduces this issue
https://github.com/robertPKO/reproduce-rerender-issue
To Reproduce
- start the application with next build then next start.
- use react dev tool to watch for component rerender
- as the reviews change, the Link will be rerendered, which does not occur in dev mode
Current vs. Expected behavior
Currently: Component is rerendered when another client component is interacted in the browser in build mode
Expected: Link should stay static when other client component is interected (works in dev mode)
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Home
Available memory (MB): 16088
Available CPU cores: 12
Binaries:
Node: 21.7.3
npm: 10.9.0
Yarn: N/A
pnpm: 10.7.1
Relevant Packages:
next: 15.3.3 // Latest available version is detected (15.3.3).
eslint-config-next: N/A
react: 19.1.0
react-dom: 19.1.0
typescript: 5.8.3
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Performance, Image (next/image), Linking and Navigating
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local), Vercel (Deployed)
Additional context
Links (and Images) are rerended on build mode ( when another client component is interacting. Doesn't happen in dev mode (npm run dev).
When I use normal link , it doesnt rerender