You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This came up when a fetched results controller would display model objects, but then logging out, killing the app, and restarting/logging in would not display any objects despite them seemingly existing in Core Data. This was due to new objects getting inserted in a different context than the one associated with the FRC. Cc @chillpop
The text was updated successfully, but these errors were encountered:
Set up a VOKCollectionDataSource with a collection view
Nuke and reset core data, then set it up again (not sure whether killing the app is integral here). In my case this happened when logging out and logging in, respectively.
Observe that relevant model objects exist e.g. by calling [[VOKCoreDataManager sharedInstance] countForClass:] but that nothing is being fetched or displayed. The fetched results controller of the data source is using a different context than the one objects are being added to.
If you follow the same steps but set up the data source again before fetching, the correct results appear. @seanwolter
I'm working on a collection view for the sample app. I was unable to reproduce, but I did find a lot of gnarly code in the vokcollectiondatasource. I should have a PR before the end of this week.
This came up when a fetched results controller would display model objects, but then logging out, killing the app, and restarting/logging in would not display any objects despite them seemingly existing in Core Data. This was due to new objects getting inserted in a different context than the one associated with the FRC. Cc @chillpop
The text was updated successfully, but these errors were encountered: