How to load data from localstorage , initally in redux state , when my next js app loads #67277
Unanswered
krishnagptamcs
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.
-
When i server my next js app , so i made a seperate component which intialise the redux state m by getting the data from local storage first and then updating , because of hydration error , because redux state is initialse ,on server side (i dont know why ) , so when my app load , then it check token value in local storage , and then update it , throught this i am seeing a delay in showing my profile button , insted of login button , where i am expected if the token is present in local storage , then it firstly/initally show the profile button
Beta Was this translation helpful? Give feedback.
All reactions