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

Hydration error[BUG] #43

Closed
chayG5 opened this issue Jul 14, 2022 · 2 comments · Fixed by #61
Closed

Hydration error[BUG] #43

chayG5 opened this issue Jul 14, 2022 · 2 comments · Fixed by #61
Assignees
Labels
bug Something isn't working

Comments

@chayG5
Copy link
Member

chayG5 commented Jul 14, 2022

Describe the bug

Hydration error:

image
image
image

To Reproduce

Steps to reproduce the behavior:

  1. docker-compose up on landing page branch
@chayG5 chayG5 added the bug Something isn't working label Jul 14, 2022
@frinzekt
Copy link
Member

to make debugging easier... The reason why this is happening is because the "server-side render" of nextJS is resulting with a different data or display upon when it is loaded by "client-side render".

The libraries that are good to look into in terms of integration are:

  • swr
  • nextjs
  • material ui

@frinzekt
Copy link
Member

Closer dive on the issue reveals it is SWR see vercel/swr#1906 ... this explains why I have never faced this issue before... For the fact that we don't need react to be version 18 specifically, I will be reverting it to around ^17.0.2 (same as spontane)

@frinzekt frinzekt mentioned this issue Aug 19, 2022
3 tasks
@frinzekt frinzekt linked a pull request Aug 19, 2022 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants