mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
How to make pagination with publishList? #409
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 @woodyjhonson on GitHub (Apr 21, 2023).
Hello everyone, I'm dealing with observers and I just can't figure out how to make pagination? Below is a sample code, thanks in advance for your responses.
https://github.com/woodyjhonson/corestore_todolist
`
`
@JohnEstropia commented on GitHub (Apr 24, 2023):
Unfortunately,
NSFetchedResultsController(which is whatListPublishers run on internally) does not honor thefetchLimitandfetchOffsetof the fetch request. You can try this again if it works on recent iOS versions, but historically it is known to be ignored.In cases like yours, we just fetch the whole list and manage the indexes/counts and applying them to
ListPublisher.snapshot