wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.66k stars 1.11k forks source link

Replaces instances of `NSManagedObjectContext` with `ContextManager` #15832

Open jkmassel opened 3 years ago

jkmassel commented 3 years ago

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 how NSPersistentContainer 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.

peril-wordpress-mobile[bot] commented 3 years ago
Fails
:no_entry_sign: Please add a feature label to this issue. e.g. 'Stats'

Generated by :no_entry_sign: dangerJS