Skip to content

Link and Image components rerendered when interacting with another client components (build only) #80639

Open
@robertPKO

Description

@robertPKO

Link to the code that reproduces this issue

https://github.com/robertPKO/reproduce-rerender-issue

To Reproduce

  1. start the application with next build then next start.
  2. use react dev tool to watch for component rerender
  3. 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

header.tsx
Image

client-reviews.tsx
Image

layout.tsx
Image

page.tsx
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Image (next/image)Related to Next.js Image Optimization.Linking and NavigatingRelated to Next.js linking (e.g., <Link>) and navigation.PerformanceAnything with regards to Next.js performance.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions