-
Notifications
You must be signed in to change notification settings - Fork 25k
Fix image loading on props change without layout invalidation #51791
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
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D75919671 |
…ok#51791) Summary: On iOS the <Image> shadow node was expecting a layout call for every clone. With `passChildrenWhenCloningPersistedNodes` <Image> components may have the image source updated without layout being called on it due to the re-use of the previous layout data thanks to the improved handling of layout invalidation. This diff triggers the image request as soon as possible if the cloned shadow node has a clean layout. The request will be made as soon as the image manager is set on the shadow node. Changelog: [iOS][Fixed] - Fix RCTImageComponentView image loading after source props change with no layout invalidation Differential Revision: D75919671
|
This pull request was exported from Phabricator. Differential Revision: D75919671 |
…ok#51791) Summary: Pull Request resolved: facebook#51791 On iOS the <Image> shadow node was expecting a layout call for every clone. With `passChildrenWhenCloningPersistedNodes` <Image> components may have the image source updated without layout being called on it due to the re-use of the previous layout data thanks to the improved handling of layout invalidation. This diff triggers the image request as soon as possible if the cloned shadow node has a clean layout. The request will be made as soon as the image manager is set on the shadow node. Changelog: [iOS][Fixed] - Fix RCTImageComponentView image loading after source props change with no layout invalidation Differential Revision: D75919671
…ok#51791) Summary: On iOS the <Image> shadow node was expecting a layout call for every clone. With `passChildrenWhenCloningPersistedNodes` <Image> components may have the image source updated without layout being called on it due to the re-use of the previous layout data thanks to the improved handling of layout invalidation. This diff triggers the image request as soon as possible if the cloned shadow node has a clean layout. The request will be made as soon as the image manager is set on the shadow node. Changelog: [iOS][Fixed] - Fix RCTImageComponentView image loading after source props change with no layout invalidation Reviewed By: NickGerleman, sammy-SC Differential Revision: D75919671
…ok#51791) Summary: Pull Request resolved: facebook#51791 On iOS the <Image> shadow node was expecting a layout call for every clone. With `passChildrenWhenCloningPersistedNodes` <Image> components may have the image source updated without layout being called on it due to the re-use of the previous layout data thanks to the improved handling of layout invalidation. This diff triggers the image request as soon as possible if the cloned shadow node has a clean layout. The request will be made as soon as the image manager is set on the shadow node. Changelog: [iOS][Fixed] - Fix RCTImageComponentView image loading after source props change with no layout invalidation Reviewed By: NickGerleman, sammy-SC Differential Revision: D75919671
|
This pull request was exported from Phabricator. Differential Revision: D75919671 |
|
This pull request has been merged in cd5d745. |
|
This pull request was successfully merged by Nick Lefever in cd5d745 When will my fix make it into a release? | How to file a pick request? |
Summary:
shadow node was expecting a layout call for every clone. With
components may have the image source updated without layout being called on it due to the re-use of the previous layout data thanks to the improved handling of layout invalidation.
On iOS the
passChildrenWhenCloningPersistedNodesThis diff triggers the image request as soon as possible if the cloned shadow node has a clean layout. The request will be made as soon as the image manager is set on the shadow node.
Changelog: [iOS][Fixed] - Fix RCTImageComponentView image loading after source props change with no layout invalidation
Differential Revision: D75919671