nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - Switching tabs reloads the whole page only after the app has been built

Open PiotrZacharskiThey opened this issue 1 year ago • 3 comments

HeroUI Version

2.8.4

Describe the bug

When using HeroUI's Tab component with href prop in a Next.js app, clicking on tabs triggers a full page refresh instead of the expected client-side navigation. This results in slower navigation and loss of component state.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Use Tabs with href in your app
  2. Build app
  3. Run the app
  4. Switch tabs

Expected behavior

Expected Behavior

Tabs should navigate using Next.js client-side routing No page refresh should occur

Current Behavior

Full page refresh occurs when clicking tabs Slower navigation experience

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

PiotrZacharskiThey avatar Sep 18 '25 13:09 PiotrZacharskiThey

Please share a minimal reproducible sandbox.

wingkwong avatar Sep 18 '25 14:09 wingkwong

closing - inactivity

wingkwong avatar Sep 30 '25 10:09 wingkwong