Skip to content
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

Merged
merged 5 commits into from
Oct 10, 2024
Merged

Fix ssr issues #2477

merged 5 commits into from
Oct 10, 2024

Conversation

MosheZemah
Copy link
Contributor

@MosheZemah MosheZemah self-assigned this Oct 9, 2024
@MosheZemah MosheZemah requested a review from a team as a code owner October 9, 2024 17:15
@mondaycom mondaycom deleted a comment from github-actions bot Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

A new prerelease version of this PR has been published! 🎉
To install this prerelease version, run the following command in your terminal with any one of the packages changed in this PR:

To update monday-ui-react-core:

Or with npm:

Copy link
Contributor

github-actions bot commented Oct 9, 2024

A new prerelease version of this PR has been published! 🎉
To install this prerelease version, run the following command in your terminal with any one of the packages changed in this PR:

To update monday-ui-react-core:

Or with npm:

Copy link
Contributor

@YossiSaadi YossiSaadi left a 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(
Copy link
Contributor

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

@MosheZemah MosheZemah merged commit 0ebf96d into master Oct 10, 2024
9 of 10 checks passed
@MosheZemah MosheZemah deleted the bug/moshe/fix_ssr_issues branch October 10, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants