Hi @Razorback2424 ,
I think that indeed, @RayWo provided you with a solution to your question, but there is something that isn't mentioned in your question, neither in the above response, which is if the queries associated with either model context will catch the updates in the model container made using the other model context. And I think that the answer is no.
As per my understanding, the model context will take care of updating the model container without collusions, but they will not read it if any update happens.
General speaking, I think that the only time that multiple Model Contex make sense is when is needed to process data of a DB in the background that doesn't care if in the meanwhile the data change and of course will never use its Model Context for data updates.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: