mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-23 01:08:27 +00:00
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 |
||
|---|---|---|
| .. | ||
| IGListDiffKit | ||
| IGListKit | ||
| IGListSwiftKit | ||
| Info.plist | ||