I’ve been using non-synced realms for a few apps, and I generally call
let realm = try Realm()
// do something...
every time I want to do something with data in the realm.
However, when working with synced realms, should I be calling
let realm = try await Realm(configuration: syncedConfiguration)
// do something
every time as well? It feels like the call to Realm(configuration: syncedConfiguration)
is expensive, but i’m just guessing here.
If we should change the behavior for synced realms, where should we store the realm?
Thanks!