-
Notifications
You must be signed in to change notification settings - Fork 45.9k
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
Add concurrentRoot property to ReactNativeTypes #21648
Add concurrentRoot property to ReactNativeTypes #21648
Conversation
Comparing: 1a3f1af...18737a0 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
|
@@ -182,6 +182,7 @@ export type ReactNativeType = { | |||
element: Element<ElementType>, | |||
containerTag: number, | |||
callback: ?() => void, | |||
concurrentRoot: ?boolean, |
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.
This param isn't on the Paper render
, only Fabric.
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.
Got it, I added it because Flow was still complaining but I found why.
Fabric is using Paper's type (https://github.com/facebook/react/blob/master/scripts/rollup/shims/react-native/ReactFabric.js#L16)
I changed it in 3744c12
I hope it was fine to remove the todo (cc @sebmarkbage).
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.
Nice find.
3744c12
to
18737a0
Compare
Summary: This sync includes the following changes: - **[c96b78e0e](facebook/react@c96b78e0e )**: Add concurrentRoot property to ReactNativeTypes ([#21648](facebook/react#21648)) //<Samuel Susla>// - **[1a3f1afbd](facebook/react@1a3f1afbd )**: [React Native] Fabric get current event priority ([#21553](facebook/react#21553)) //<Samuel Susla>// - **[48a11a3ef](facebook/react@48a11a3ef )**: Update next React version ([#21647](facebook/react#21647)) //<Andrew Clark>// - **[5aa0c5671](facebook/react@5aa0c5671 )**: Fix Issue with Undefined Lazy Imports By Refactoring Lazy Initialization Order ([#21642](facebook/react#21642)) //<Sebastian Markbåge>// Changelog: [General][Changed] - React Native sync for revisions 0eea577...c96b78e jest_e2e[run_all_tests] Reviewed By: bvaughn Differential Revision: D29029542 fbshipit-source-id: 9f2e19b4714b5697b5b846f2db8eb28c25420932
* Add concurrentRoot property to ReactNativeTypes * Add concurrentRoot to ReactNativeType * Use ReactFabricType instead of ReactNativeType
Summary
I added concurrent root flag to render function for Fabric in #21552.
I forgot to add it to ReactNativeTypes for its Flow type. This PR fixes that.
Test Plan
Make sure the function signature from
ReactNativeTypes.js
aligns with function inReactFabric.js
.