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
When the user switches tabs, it takes at least 2s for the page to render.
Recommended Change
Instead of navigating to a separate page for each tab, use a dynamic route parameter [slug] in Next.js and update only the content that changes between tabs. This allows shared layout components to remain mounted and unaffected, reducing unnecessary re-renders and improving tab-switching performance.
Issue
Recommended Change
[slug]in Next.js and update only the content that changes between tabs. This allows shared layout components to remain mounted and unaffected, reducing unnecessary re-renders and improving tab-switching performance.