You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution added below, opened for tracking and discussion.
Describe the bug A clear and concise description of what the bug is.
In short, overlay throws a hydration mismatch because of createPortal
To Reproduce Steps to reproduce the behavior:
Spin up a Nextjs app,
Add the package
Use the sample with the overlay component
That's it.
Desktop (please complete the following information):
OS: Ubuntu 20
Browser Chrome
Version 102.0.5005.115
Additional context Add any other context about the problem here.
The solution I put in the OverlayView was to add a mounted state and either create the portal or return null. I don't know if this is the acceptable solution for this project, but it works pretty well.
Solution added below, opened for tracking and discussion.
Describe the bug A clear and concise description of what the bug is.
In short, overlay throws a hydration mismatch because of
createPortal
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
The solution I put in the OverlayView was to add a mounted state and either create the portal or return null. I don't know if this is the acceptable solution for this project, but it works pretty well.
Btw I think this library is greater than all the other Google map libraries. It's elegant, it's clean, and it's well typed. I love it!
The text was updated successfully, but these errors were encountered: