Post

Replies

Boosts

Views

Activity

Reply to modelContext.save triggers warning: publishing changes from background threads is not allowed
Thanks! Elsewhere in my code I am observing a didSave notification: .onReceive(NotificationCenter.default.publisher(for: ModelContext.didSave)) { object in ... So this call is triggering that warning, and it is telling me that whoever is observing didSave will not get notifications from that specific call, since it is running on a background thread. I think I get it :)
Oct ’24