-
Notifications
You must be signed in to change notification settings - Fork 4k
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(Portal) check for rootNode rendering to prevent race condition #2457
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2457 +/- ##
==========================================
- Coverage 99.74% 99.74% -0.01%
==========================================
Files 154 154
Lines 2699 2694 -5
==========================================
- Hits 2692 2687 -5
Misses 7 7
Continue to review full report at Codecov.
|
Let's add a failing test that validates the fix. The fix location is also suspect. If this.rootNode.className = className || '' |
@levithomason, excellent point. I dug a little further and came across facebook/react#9808 which highlights
Thanks for the guidance. I've refactored a bit and added a test. |
@levithomason ping |
Ah, nice find! I've done some manual testing and this all looks great. Thanks for the detective work. |
Thank you so much for resolving this issue! |
Released in |
@aloey I shoot for a release every weekend. Sometimes life prevents it. |
Thanks folks to fix this error. I've spent a few hours to find out about this bug, because I only could get this error from Portal but into 'node_modules/react/cjs/react.development.js', until I can isolate that error. Nothing into the app is broken, everything was working fine, but I got that error #2401 from console. I was using semantic-ui-react@v0.76.0, after updating semantic-ui-react@v0.78.0 that error is gone. |
We rely heavily on Semantic-UI-React and have had our monitoring reporting the following issue
We've investigated it a few times but recently stumbled upon this issue #2401
This commit has been able to successfully prevent this issue without introducing any new issues.