-
Notifications
You must be signed in to change notification settings - Fork 47k
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 "findNodeHandle inside its render()" False Positive Warning #29627
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Comparing: a9a0106...84ac565 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
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.
Is it possible to add a test?
Probably, but let me merge this first (to unbreak React Native) and follow up with another PR to add a test. |
## Summary As promised on #29627, this creates a unit test for the `findNodeHandle` error that prevents developers from calling it within render methods. ## How did you test this change? ``` $ yarn test ReactFabric-test.internal.js ```
This was missed in #29038 when unifying the "owner" abstractions, causing
findNodeHandle
to warn even outside ofrender()
invocations.