Open jkmassel opened 3 years ago
We currently pass around NSManagedObjectContext objects in many places – namely View Controllers and services.
NSManagedObjectContext
In these cases, we often make changes directly to the mainContext, which is incompatible with how NSPersistentContainer is designed to work.
mainContext
NSPersistentContainer
We'll replace instances of a bare context being passed around with reads from the viewContext and writes using the new Core Data write API.
viewContext
Generated by :no_entry_sign: dangerJS
We currently pass around
NSManagedObjectContext
objects in many places – namely View Controllers and services.In these cases, we often make changes directly to the
mainContext
, which is incompatible with howNSPersistentContainer
is designed to work.We'll replace instances of a bare context being passed around with reads from the
viewContext
and writes using the new Core Data write API.