Next.js 13.4.2: Navigation between pages in /app
and /pages
folders causes full app reload
#49849
Replies: 1 comment 1 reply
-
AFAIK, this is how it is expected to be... but I can't really build a good rationale, other than, the rendering of app and pages is different, meaning it creates a different React tree, that handles serialized data as React Server Components data, and there's different router engines on both. Like navigating between both, is not just removing a couple of divs from the DOM, it is a whole lot more than that. There's client side caching layers, routing is different, script tags needed are different, the window globals are different too (I think) ~ It'd be nice to have some documentation stating that hard reload will happen, I couldn't find it. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I am incrementally migrating from
pages
toapp
and currently facing this problemI have
With simple client component navigation like this
There is no problem when navigate between
foo
andbar
which is inapp
and also no problem when navigate betweenfoo-page
andbar-page
which is inpages
But when navigate between
foo
andfoo-page
and so on , It's causing full reloadAm I missing something ?
Look like I'm not the only one : stackoverflow
Beta Was this translation helpful? Give feedback.
All reactions