Next Js Upgrade from 14.1.0 to 14.2.10 Router issue #77055
Unanswered
prasannapalo
asked this question in
App Router
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.
-
When we upgrade the next Js from 14.1.0 to 14.2.10 react context loses its state value. it is happening only in production environment where we deployed the build in s3 . It is working fine in local host. here is the sample code below
I'm using Context API to manage the state in my Next.js application. After saving data and using router.push to navigate to another page, the context value gets reset to its initial state. The strange part is that this issue only occurs in the production environment. In the local (development) environment, everything works fine.
It was working fine in the previous version. could any one advice ?
Beta Was this translation helpful? Give feedback.
All reactions