SwiftData main modelContext changes do not update background modelContext with ModelActor

What is the correct usage of two modelContexts (when you have a main one for swiftUI, and a background one for background operations - like networking)?

Is it expected that when the main one make updates, that the background modelContexts would also update automatically?

And if it doesn't, is there a way to force it to get updates?

I filed a feedback for that a few weeks ago and it seems to be fixed in the latest iOS 18 beta at least. It still does not work in the simulator of the latest Xcode beta, though. So be aware, that you only get the intended behaviour on device.

(Not sure about the situation on iOS 17, though)

SwiftData main modelContext changes do not update background modelContext with ModelActor
 
 
Q