Skip to content

Persist will not rerender UI in Nextjs when doing browser refresh #314

Closed Answered by kaisiant
kaisiant asked this question in Q&A
Discussion options

You must be logged in to vote

Solved with this solution:

export default dynamic(() => Promise.resolve(UserLayout), {
  ssr: false,
})

Solution: https://codesandbox.io/s/sleepy-grass-w64b1?file=/pages/index.js

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kaisiant
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kaisiant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants