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
pagestoappand currently facing this problemI have
With simple client component navigation like this
There is no problem when navigate between
fooandbarwhich is inappand also no problem when navigate betweenfoo-pageandbar-pagewhich is inpagesBut when navigate between
fooandfoo-pageand 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