It's best to use @Query to fetch data when working with UI, like in this case.
ModelActor is is meant to work on background operations.
But SwiftData is also fundamentally broken when merging changes between background and foreground contexts. I would avoid at all costs.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: