-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicate component tree creation in CKRenderWithSizeSpecComponent
Summary: - Yoga might run a double measurement on a component. - `CKRenderWithSizeSpecComponent` calls `buildComponentTree:` on its children in the `measureChild` method. - Without this diff, in case of a double measurement we could potentially create the component tree multiple times which is expensive - Now we cache the components that have been measured and don't create then again in case of a double measurement Reviewed By: kevin0571 Differential Revision: D9882959 fbshipit-source-id: f40093b00a0a7a084ef6f8d53719640d7da34938
- Loading branch information
1 parent
7a560cc
commit 907a5d0
Showing
1 changed file
with
42 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters