-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[iOS] RNTester enable concurrent root when using Fabric #41166
[iOS] RNTester enable concurrent root when using Fabric #41166
Conversation
Base commit: 586de42 |
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.
Per the docs, prepareInitialProps
is a method that's supposed to be overwritten (although confusing that we have two ways do it - we also have the initialProps property...)
Maybe a better fix would be to change RCTAppDelegate.m
to always override this property consistently, outside of prepareInitialProps
.
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.
Wow, very well spotted. Thank you for this fix!
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@javache @cipolleschi Thanks for the review, should I need to update the commit like below?
|
Oh sorry, I haven't seen the @javache review. @zhongwuzw I think that the best way would be in the
So, if in the future we have to add other prop to the Thoughts? |
@cipolleschi Done, please review again. |
@javache Done. please review again, thanks! |
…/fix_rntester_concurrentroot
@javache Done. Also update commit to fix the bridgeless mode. |
@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was successfully merged by @zhongwuzw in b1e92d6. When will my fix make it into a release? | Upcoming Releases |
Summary: RNTester's `AppDelegate` override `prepareInitialProps` method of super class `RCTAppDelegate` https://github.com/facebook/react-native/blob/70acd3f7d9edae9e40cc4603bede9778da281a85/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm#L152, so we missed `concurrentRoot` initial prop. ![image](https://github.com/facebook/react-native/assets/5061845/12af5815-afe6-46f0-8107-54ca443b4962) cc javache cipolleschi ## Changelog: [IOS] [FIXED] - RNTester enable concurrent root when using Fabric Pull Request resolved: facebook#41166 Test Plan: Warning disappear. Reviewed By: cipolleschi Differential Revision: D50596693 Pulled By: javache fbshipit-source-id: d73a17cd137b3088405f86b739cb0ed7b5a9839e
Summary: RNTester's `AppDelegate` override `prepareInitialProps` method of super class `RCTAppDelegate` https://github.com/facebook/react-native/blob/70acd3f7d9edae9e40cc4603bede9778da281a85/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm#L152, so we missed `concurrentRoot` initial prop. ![image](https://github.com/facebook/react-native/assets/5061845/12af5815-afe6-46f0-8107-54ca443b4962) cc javache cipolleschi [IOS] [FIXED] - RNTester enable concurrent root when using Fabric Pull Request resolved: #41166 Test Plan: Warning disappear. Reviewed By: cipolleschi Differential Revision: D50596693 Pulled By: javache fbshipit-source-id: d73a17cd137b3088405f86b739cb0ed7b5a9839e
Summary:
RNTester's
AppDelegate
overrideprepareInitialProps
method of super classRCTAppDelegate
react-native/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm
Line 152 in 70acd3f
concurrentRoot
initial prop.cc @javache @cipolleschi
Changelog:
[IOS] [FIXED] - RNTester enable concurrent root when using Fabric
Test Plan:
Warning disappear.