diff --git a/Sources/SwiftDataSync/Synchronizer/SDSSynchronizer+ObservedContexts.swift b/Sources/SwiftDataSync/Synchronizer/SDSSynchronizer+ObservedContexts.swift index 1079313..f074e34 100644 --- a/Sources/SwiftDataSync/Synchronizer/SDSSynchronizer+ObservedContexts.swift +++ b/Sources/SwiftDataSync/Synchronizer/SDSSynchronizer+ObservedContexts.swift @@ -45,7 +45,9 @@ extension SDSSynchronizer { // Changes cannot be handled here as we do not get useful information about the properties that have changed handleChangedObjects(insertedObjects, inserted: true) - self.save() + if self.context.hasChanges { + self.save() + } } func handleChangedObjects(_ objects: [SDSSynchronizableContainer], inserted: Bool = false) {