IGListKit/Source/Common
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
..
Internal Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
IGListAssert.h fixup common files and podspec, #270 2016-12-19 21:44:13 -08:00
IGListBatchUpdateData.h Prevent a crash when inserting the same index twice, re-open of #616 2017-04-11 15:02:13 -07:00
IGListBatchUpdateData.mm Prevent a crash when inserting the same index twice, re-open of #616 2017-04-11 15:02:13 -07:00
IGListCompatibility.h Added compatibility header 2016-12-24 10:44:25 -08:00
IGListDiff.h Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
IGListDiff.mm Added compatibility header 2016-12-24 10:44:25 -08:00
IGListDiffable.h Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
IGListDiffKit.h Added Subspec for Diffing 2016-12-27 12:44:27 -08:00
IGListExperiments.h Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
IGListIndexPathResult.h - (BOOL) hasChanges should be a readonly property 2017-02-02 09:59:05 -08:00
IGListIndexPathResult.m Convert NSUInteger to NSInteger 2017-01-22 14:44:14 -08:00
IGListIndexSetResult.h - (BOOL) hasChanges should be a readonly property 2017-02-02 09:59:05 -08:00
IGListIndexSetResult.m Convert NSUInteger to NSInteger 2017-01-22 14:44:14 -08:00
IGListMacros.h Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
IGListMoveIndex.h Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
IGListMoveIndex.m Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
IGListMoveIndexPath.h Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
IGListMoveIndexPath.m Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
NSNumber+IGListDiffable.h Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
NSNumber+IGListDiffable.m Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
NSString+IGListDiffable.h Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00
NSString+IGListDiffable.m Move macOS and diffing files to Common dir 2016-12-19 12:29:24 -08:00