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
Warning: Did not expect server HTML to contain a <div> in <div>.
in nextjs React-17 ssr.
#59
Comments
I was wondering what was causing this. I will def take a look asap. Bare with me, things are kind of crazy for me right now. |
Guess we never resolved this one? I'm getting it too. |
Happy to accept a PR. |
I just sorted it out by rendering null on the server and only rendering the portal on the client. |
Same. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Warning: Did not expect server HTML to contain a <div> in <div>.
in nextjs React-17 ssr.https://codesandbox.io/s/useportal-in-nextjs-codesandbox-container-forked-oh10i?file=/pages/index.js
To Reproduce
Run the sandbox and console shows warning message.
Expected behavior
No warning message
The text was updated successfully, but these errors were encountered: