-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VirtualizedList optimization - refactor CellRenderer props to elimina…
…te parentProps Summary: Problem: All CellRenderers rerender every time the containing VirtualizedList is rerendered. This is due to the following: - Lambda is created for each CellRenderer's onLayout prop on every VirtualizedList render (fixed in D35061321 (19cf702)) - CellRenderer's parentProps prop changes on every VirtualizedList render (addressed in this diff) - FlatList recreates renderItem/ListItemComponent in FlatList._renderer Changelog: [Internal] - VirtualizedList optimization - refactor CellRenderer props to eliminate parentProps Reviewed By: javache Differential Revision: D35062323 fbshipit-source-id: 705c2f7c6c482b7813efdfdac7019a94594de590
- Loading branch information
1 parent
19cf702
commit adb2962
Showing
1 changed file
with
27 additions
and
23 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