-
Notifications
You must be signed in to change notification settings - Fork 322
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
Fix ssr issues #2477
Fix ssr issues #2477
Conversation
A new prerelease version of this PR has been published! 🎉 To update
Or with npm:
|
A new prerelease version of this PR has been published! 🎉 To update
Or with npm:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had one thing to fix, but approving
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */} | ||
const dialog = | ||
isClient() && | ||
ReactDOM.createPortal( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seem like you can remove this ReactDOM.createPortal
from here
it calls createPortal
at line 209 as well
at the current implementation it would not render the Modal at all when SSR
https://monday.monday.com/boards/4400799549/pulses/6799260682