mark your class as @unchecked Sendable and try
Post
Replies
Boosts
Views
Activity
I'm still encountering this issue and so confused there should not be an so obvious bug here.
Recently I decide to make App purely relying on SwiftData: 1. reading from network 2. write to context 3. only read data when notified without interrupting context writing.
For the notification object, I tried context, context.self, and even the actor calling the context.insert. None of them works.
Really need help!