-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
Checklist
- This is not a Apple's bug.
- Reviewed the README and documents.
- Searched existing issues for ensure not duplicated.
Expected Behavior
Should not crash
Current Behavior
Rapid updates between these two type of reload methods cause datasource to be inconsistent
https://github.com/ra1028/Carbon/blob/master/Sources/Updaters/UICollectionViewUpdater.swift#L59-L64
https://github.com/ra1028/Carbon/blob/master/Sources/Updaters/UICollectionViewUpdater.swift#L70-L75
and will sometimes, very rarely, cause cellNode(at: indexPath) below to throw an fatal arror
https://github.com/ra1028/Carbon/blob/master/Sources/Updaters/UICollectionViewUpdater.swift#L168
Steps to Reproduce
Attached simple example project. You may have to run it a few times.
CarbonCrash.zip
Environments
- Carbon version: Master
- Swift version: 5.3
- iOS version: 14.1
- Xcode version: 12
- Devices/Simulators: All
- CocoaPods/Carthage version: SPM
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
