IGListKit/Source
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
..
Common Prevent a crash when inserting the same index twice, re-open of #616 2017-04-11 15:02:13 -07:00
Internal Prevent a crash when inserting the same index twice, re-open of #616 2017-04-11 15:02:13 -07:00
IGListAdapter.h kill IGListCollectionView. GH issue #409 (redo of D4640425) 2017-03-31 14:54:09 -07:00
IGListAdapter.m kill IGListCollectionView. GH issue #409 (redo of D4640425) 2017-03-31 14:54:09 -07:00
IGListAdapterDataSource.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListAdapterDelegate.h Add Nullability to a Few Headers 2017-04-10 10:18:20 -07:00
IGListAdapterUpdater.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListAdapterUpdater.m Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListAdapterUpdaterDelegate.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListBatchContext.h Add Nullability to a Few Headers 2017-04-10 10:18:20 -07:00
IGListBindable.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListBindingSectionController.h Make -[IGListBindingSectionController object] Public 2017-03-31 15:03:11 -07:00
IGListBindingSectionController.m Make -[IGListBindingSectionController object] Public 2017-03-31 15:03:11 -07:00
IGListBindingSectionControllerDataSource.h Auto diffing section controller 2017-03-15 07:47:24 -07:00
IGListBindingSectionControllerSelectionDelegate.h Auto diffing section controller 2017-03-15 07:47:24 -07:00
IGListCollectionContext.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListCollectionViewLayout.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListCollectionViewLayout.mm handle float number fraction part for layout. 2017-03-17 12:33:34 -07:00
IGListDisplayDelegate.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListKit.h kill IGListCollectionView. GH issue #409 (redo of D4640425) 2017-03-31 14:54:09 -07:00
IGListReloadDataUpdater.h Add Nullability to a Few Headers 2017-04-10 10:18:20 -07:00
IGListReloadDataUpdater.m Add item-level moves to IGListCollectionContext 2017-02-10 18:01:18 -08:00
IGListScrollDelegate.h Add Nullability to a Few Headers 2017-04-10 10:18:20 -07:00
IGListSectionController.h Add Nullability to a Few Headers 2017-04-10 10:18:20 -07:00
IGListSectionController.m Initial commit 2016-10-11 10:12:17 -04:00
IGListSectionType.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListSingleSectionController.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListSingleSectionController.m Added object to single section selection delegate callback 2017-01-11 15:14:01 -08:00
IGListStackedSectionController.h Add Nullability to a Few Headers 2017-04-10 10:18:20 -07:00
IGListStackedSectionController.m Container size doesnt use content inset, add new APIs 2017-03-30 09:35:03 -07:00
IGListSupplementaryViewSource.h Docs updates and refinements, #181 2016-11-15 11:44:10 -08:00
IGListUpdatingDelegate.h Move section controller mutation API to object provided in update block 2017-03-22 12:46:49 -07:00
IGListWorkingRangeDelegate.h Docs updates and refinements, #181 2016-11-15 11:44:10 -08:00
Info.plist Release 2.1.0 prep 2017-01-04 10:14:37 -08:00