react-native/Libraries/Lists
Logan Daniels 122dc37afe Deeply compare viewabilityConfigs to avoid triggering invariant unnecessarily
Summary:
Currently, modifying a component that renders a FlatLists while Hot Reloading is enabled will trigger an invariant inside FlatList for changing viewabilityConfig on the fly. This happens because it checks object equality between the configs.

By checking equality of the config's *properties* instead, we maintain the efficacy of the invariant but keep it from falsely triggering during development.

Reviewed By: sahrens

Differential Revision: D9466129

fbshipit-source-id: 67149e9e70ad7b2e2584bb7ec03e2dea26ef45e8
2018-08-24 14:32:07 -07:00
..
ListView Adding flow strict local to remaining possible files in xplat/JS 2018-08-09 08:54:44 -07:00
__flowtests__ Adding flow strict local to remaining possible files in xplat/JS 2018-08-09 08:54:44 -07:00
__tests__ Adding new styling props to FlatList/VirtualizedList for ListHeaderComponent and ListFooterComponent 2018-07-12 13:49:08 -07:00
FillRateHelper.js Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
FlatList.js Deeply compare viewabilityConfigs to avoid triggering invariant unnecessarily 2018-08-24 14:32:07 -07:00
MetroListView.js Flowtype ListView 2018-05-14 00:24:44 -07:00
SectionList.js Flowtype ListView 2018-05-14 00:24:44 -07:00
ViewabilityHelper.js Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
VirtualizeUtils.js Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
VirtualizedList.js Typing View style as ViewStyleProp 2018-08-14 16:32:11 -07:00
VirtualizedSectionList.js Bump Prettier to 1.13.4 on xplat 2018-06-06 05:32:06 -07:00