Explorar o código

Set automaticallyMergesChangesFromParent to false as we are using Persistent History Tracking

polscm32 hai 1 ano
pai
achega
1679ccb026
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Model/CoreDataStack.swift

+ 1 - 1
Model/CoreDataStack.swift

@@ -88,7 +88,7 @@ class CoreDataStack: ObservableObject {
         let taskContext = persistentContainer.newBackgroundContext()
 
         /// ensure that the background contexts stay in sync with the main context
-        taskContext.automaticallyMergesChangesFromParent = true
+        taskContext.automaticallyMergesChangesFromParent = false
         taskContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
         taskContext.undoManager = nil
         return taskContext