IGListKit/Source/Internal
Jesse Squires a415ef5552 Prevent a crash when inserting the same index twice, re-open of #616
Summary:
Original comment:

If you insert or delete into the same index twice **and** update your data source to reflect those changes, we will squash the insert/delete into a single update because we're using `NSSet` internally.

This becomes very apparent when multiple updates are coalesced.

Issue fixed: #483

- [x] All tests pass. Demo project builds and runs.
- [x] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
Closes https://github.com/Instagram/IGListKit/pull/634

Differential Revision: D4860479

Pulled By: jessesquires

fbshipit-source-id: 3aa271d90fca21b11201f62cefa8d7fbcef6930f
2017-04-11 15:02:13 -07:00
..
IGListAdapterInternal.h Move section controller mutation API to object provided in update block 2017-03-22 12:46:49 -07:00
IGListAdapterProxy.h Initial commit 2016-10-11 10:12:17 -04:00
IGListAdapterProxy.m Initial commit 2016-10-11 10:12:17 -04:00
IGListAdapterUpdaterInternal.h Renamed batchUpdatesCollector to batchUpdates fixes #556 2017-03-16 16:18:21 -07:00
IGListBatchUpdates.h Prevent a crash when inserting the same index twice, re-open of #616 2017-04-11 15:02:13 -07:00
IGListBatchUpdates.m Prevent a crash when inserting the same index twice, re-open of #616 2017-04-11 15:02:13 -07:00
IGListBatchUpdateState.h Track batch updates in object and explicit state 2017-03-07 09:33:03 -08:00
IGListCollectionViewLayoutInternal.h add integer pixel scaled for frame 2017-03-17 12:33:34 -07:00
IGListDisplayHandler.h Consider supplementary views when sending display events 2017-02-13 07:01:13 -08:00
IGListDisplayHandler.m Consider supplementary views when sending display events 2017-02-13 07:01:13 -08:00
IGListSectionControllerInternal.h Add isLast/FirstSection API to IGListSectionController 2016-10-13 12:44:12 -07:00
IGListSectionMap.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListSectionMap.m optimize. avoid unncessary copies. 2017-02-14 15:33:43 -08:00
IGListStackedSectionControllerInternal.h Move section controller mutation API to object provided in update block 2017-03-22 12:46:49 -07:00
IGListWorkingRangeHandler.h Initial commit 2016-10-11 10:12:17 -04:00
IGListWorkingRangeHandler.mm Initial commit 2016-10-11 10:12:17 -04:00
UICollectionView+IGListBatchUpdateData.h Initial commit 2016-10-11 10:12:17 -04:00
UICollectionView+IGListBatchUpdateData.m Prevent a crash when inserting the same index twice, re-open of #616 2017-04-11 15:02:13 -07:00