IGListKit/Source
Maxime Ollivier fc8c4ba640 validate the section count before a performBatchUpdate
Summary:
We're seeing some crashes where the `UICollectionView`'s section count doesn't match the `fromObjets`. Ideally that shouldn't happen, but in case it does, lets fallback to a `reloadData` instead of crashing. Lets `IGFailAssert()` to keep an eye on it.

EDIT: Turns out `UICollectionView` will sometimes already do that for item-level inconsistencies! Example error message:
>  The number of items contained in an existing section after the update (9) must be equal to the number of items contained in that section before the update (10), plus or minus the number of items inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out). - will perform reloadData.

But it still throws a `NSInternalInconsistencyException` for section-level inconsistencies.

Reviewed By: patters

Differential Revision: D23386178

fbshipit-source-id: a9930b619701cffd37d0d6e2bcb1268ef7c9d0ce
2020-09-08 09:11:12 -07:00
..
IGListDiffKit validate the section count before a performBatchUpdate 2020-09-08 09:11:12 -07:00
IGListKit validate the section count before a performBatchUpdate 2020-09-08 09:11:12 -07:00
IGListSwiftKit remove non-existing parameters from docblock (#1412) 2019-12-20 10:59:06 -08:00
Info.plist Refine dequeueReusableCellOfClass methods for Swift (#1388) 2019-12-19 08:13:22 -08:00