-
-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetchAll in ListPublisher observer doesnt get new data #486
Comments
Why do you observe on |
thanks for reply @JohnEstropia, i fetch different objects because variant have relation with groups, i need to know what groups that available for new data. i can use |
Your |
Yes, because the I'm not sure how the |
You're also using |
i think the problem is not |
I see. You should also be careful because sorting with relationship keys only work on the initial list, but not on updates. In general you should avoid relying on relationships when it comes to ListPublisher (NSFetchedResultsController) predicates because they are only reevaluated one level from the original Entity type |
oke @JohnEstropia thanks for reminded me, do we have utilities for combine two observer in coreStore? |
There's no performant way to observe on relationships (i.e. foreign table) so my recommended approach would be to add a private field to |
i see thankyou @JohnEstropia , i will research new approach before going to use your suggestion |
hi @JohnEstropia, i have some problem about corestore observer, can you help me?
this my method when fetch data from server and save it into database
and i add new observer in viewcontroller to notify when variant get updated, so i will fetch all groups data, but groups data is not get the latest one
The text was updated successfully, but these errors were encountered: