Skip to content

Commit

Permalink
Use in-memory changes core data merge policy
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamede1945 committed Nov 25, 2023
1 parent 46a7a5e commit fc3ec1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Data/CoreDataPersistence/Sources/CoreDataStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class CoreDataStack {
public func newBackgroundContext() -> NSManagedObjectContext {
let context = persistentContainer.newBackgroundContext()
context.transactionAuthor = appTransactionAuthorName
context.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
return context
}

Expand Down

0 comments on commit fc3ec1e

Please sign in to comment.