Files
react-native/Libraries
Nick Gerleman 052617611d Fix FillRateHelper Accessing -1 Frame
Summary:
FillRateHelper accesses frame metrics based on passed state/cellsAroundViewport on scroll. cellsAroundViewport may be [0, -1] for no items. Usually this is captured by the check that item count is zero, but it is possible to have items without yet expanding state to render the items. This adds a check to bail early if we are not yet rendering any viewport-related cells.

Also renamed "state" to "cellsAroundViewport" for more consistent naming with the new list, where it is no longer the only state.

Reviewed By: javache

Differential Revision: D39345705

fbshipit-source-id: 198ab46ff2c8e8fe64076c9150edd4914dd745d7
2022-09-08 05:46:44 -07:00
..
2022-08-31 16:05:55 -07:00
2022-08-03 21:07:47 -07:00
2022-08-31 16:05:55 -07:00
2022-09-07 12:20:58 -07:00
2022-04-05 12:15:05 -07:00
2022-09-01 12:39:03 -07:00
2022-08-26 19:10:03 -07:00
2022-08-31 16:05:55 -07:00
2022-04-05 12:15:05 -07:00
2022-07-05 13:03:11 -07:00