How to make /dashboard
behave like a true SPA in Next.js 15 App Router? RSC & streaming causing performance issues
#79533
Unanswered
ganeshrvel
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm building a web app using Next.js 15 (App Router). My dashboard section (
/dashboard
,/dashboard/projects
,/dashboard/projects/[id]
, etc.) has several nested routes. I hardly use any server actions, in fact none at all in the dashboard route.Problem
Every time I navigate within the dashboard routes:
All the components under
/dashboard/
are marked with'use client'
, and I have verified that no<Suspense>
boundaries are being used. Still, I notice server streaming behavior and layout-level delays on every route transition.This is causing poor performance. Ideally, the dashboard should:
What I’ve Tried
'use client'
at all levels (layouts, pages, components), didn’t help(dashboard)
, didn’t helprouter.push()
instead of<Link>
, didn’t helpexport const dynamic = 'force-static'
, didn’t helpWhat I’m Expecting
Questions
/dashboard
?Would appreciate any guidance or suggestions!
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions