mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-18 15:07:00 +01:00
Force fetchLimit for ListPublisher and ListSnapshot
This commit is contained in:
@@ -93,6 +93,11 @@ extension Internals {
|
||||
var snapshot = Internals.DiffableDataSourceSnapshot(
|
||||
sections: controller.sections ?? []
|
||||
)
|
||||
let fetchLimit = controller.fetchRequest.fetchLimit
|
||||
if fetchLimit > 0 {
|
||||
|
||||
snapshot.resize(limit: fetchLimit)
|
||||
}
|
||||
snapshot.reloadSections(self.reloadedSectionIDs)
|
||||
snapshot.reloadItems(self.reloadedItemIDs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user