mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 07:33:28 +01:00
fetchLimit is not working with ListPublisher #296
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 @EricSKCheng on GitHub (Nov 13, 2019).
First I create a ListPublisher
and add a addObserver
however if I add a new article to the corestore, the observer will return more than 10 items.
@JohnEstropia commented on GitHub (Nov 13, 2019):
This is a limitation of
NSFetchedResultsControllerwhich also affectsListMonitor.Fortunately,
ListPublishers use diffing instead of relying on FRC update methods, so we can easily simulate the fetch limit by hand.(i.e. just truncate the unwanted items from the snapshot)I'll post an update soon.
@EricSKCheng commented on GitHub (Nov 13, 2019):
Thx.
@JohnEstropia commented on GitHub (Nov 14, 2019):
Implemented in
developbranch 👍