FetchedResultsController in TCA #2920
Unanswered
lightandshadow68
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Has anyone found a way to successfully leverage CoreData's FetchedResultsController in a dependency?
I've created a custom combine publisher to return an array of FetchedResultsSectionInfo, but occasionally get flagged with a data race using the thread sanitizer diagnostic in Xcode when models are saved.
What's odd is that when I print the thread in those methods, it's always "com.apple.root.user-initiated-qos.cooperative" Yet, the sanitizer report refers to other threads.
I'm open to completely scrapping Combine in this particular case, and moving to a AsyncThrowingSequence. I'm actually using .values to get the results back as such, but I think the problem has something to do with something intrinsic to how FetchedResultsController reloads after saves.
Beta Was this translation helpful? Give feedback.
All reactions