Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hydration error when refreshing profile page #1691

Closed
eduardopicolo-cb opened this issue Dec 20, 2024 · 2 comments · May be fixed by #1718
Closed

Fix hydration error when refreshing profile page #1691

eduardopicolo-cb opened this issue Dec 20, 2024 · 2 comments · May be fixed by #1718
Assignees

Comments

@eduardopicolo-cb
Copy link
Contributor

The error only occurs when refreshing the page

image
@eduardopicolo-cb eduardopicolo-cb self-assigned this Dec 20, 2024
@eduardopicolo-cb
Copy link
Contributor Author

PROD-SWC-WEB-4W2

@eduardopicolo-cb
Copy link
Contributor Author

useSession hook is returning false on server-side and true on client-side, which causes a mismatch when rendering the Finish Profile button. Lazily importing the ProfileAndNFTButtons with ssr: false fixes the hydration error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants