mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 07:33:28 +01:00
ListMonitor does not respect fetchLimit after inserts. #172
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zalogatomek on GitHub (Sep 27, 2017).
So, I have some
ListMonitor,Where,ListObserver(self)Then, I'm performing
refetch()withTweak:Everything works as expected (in this scenario: 10
Person's entities with lowest name) but when in some other part of App I'm making inserts intoPerson, fetchLimit is not respected:listMonitor(_:didInsertObject:toIndexPath:)is called for every inserted entity, whilelistMonitor(_:didDeleteObject:fromIndexPath:)is not called at all.self.monitor.numberOfObjectsInSection(0)returns more than 10@JohnEstropia commented on GitHub (Oct 10, 2017):
Unfortunately this is a bug in NSFetchedResultsController since 2011 and there's not much we can do here aside from reporting it to Apple.