We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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>.
Describe the bug Warning: Did not expect server HTML to contain a <div> in <div>. in nextjs React-17 ssr.
⚠️ Make a Codesandbox ⚠️ 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:
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.
Sorry, something went wrong.
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.
alex-cory
No branches or pull requests
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: