I had the same problem except it happened when calling dismiss on a PresentationMode in SwiftUI.
FWIW scheduling it on the next RunLoop worked for me:
RunLoop.main.schedule {
self.presentationMode.wrappedValue.dismiss()
}
Post
Replies
Boosts
Views
Activity
Did you try checking before calling context.save() but after having edited?
Once it has been saved these will be empty.