Nextjs docs claim state is not lost between navigation? (Client side cache) #58540
Unanswered
gmoniava
asked this question in
App Router
Replies: 1 comment
-
|
Adding to this, on my local development environment when using the PAGE based router it DOES preserve state between pages. But when deployed to a production-like environment it doesn't preserve state, and does full mounting of components with new state. Weird behavior |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
In the Nextjs App router docs about Client side cache it says:
I can't reproduce it. See here.
Why was the counter reset? According to above quote wasn't the counter supposed to retain value?
Ps there is similar quote from another section of docs which seems to imply same thing:
Beta Was this translation helpful? Give feedback.
All reactions