-
Notifications
You must be signed in to change notification settings - Fork 472
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
Did not expect server HTML to contain a <div> in <div>. #8
Comments
I'm not sure what the fix is |
if we put inside NextLink this warning goes away. not sure why is this. |
I am by no means an expert in Next.js, I'm only 4 hours through the video but I think it has something to do with the structure of the content, and the contents therein between what gets rendered SSR to what gets rendered client-side. It may not be in the same file, as you didn't mention it, but I was getting it in Instead of
with
Where, initially, when the query is fetching, it is returning So, without that change, I think Next is surprised, that when the query is no longer fetching, that instead of a Hence the error
|
Thanks @AaronMcCloskey. I was also getting same issue |
I found a method to solve this issue.
We know NextLink will cause the hydration issue.
the hydration issue is solved. I found the method from here: |
I am getting this warning on client side, probably some react hydration issue. searched for a while everywhere but could not find any solution. Would be nice you address this issue.
The text was updated successfully, but these errors were encountered: