You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I have a problem. In some devices im getting the crash, but cant catch it.
i use the ModelActor in Dependency and modelContainer in a shared class.
import Foundation
import Dependencies
extension BackgroundDatabase: DependencyKey {
static var liveValue: Database = BackgroundDatabase(modelContainer: DataProvider.shared.container)
}
extension DependencyValues {
var backgroundDatabase: Database {
get { self[BackgroundDatabase.self] }
set { self[BackgroundDatabase.self] = newValue }
}
}
And sometimes it crashes at the launch
Ive also tried to move container into init of BackgroundDatabase and it has no effect
Can anybody help me?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I have a problem. In some devices im getting the crash, but cant catch it.
i use the ModelActor in Dependency and modelContainer in a shared class.
And sometimes it crashes at the launch
Ive also tried to move container into init of BackgroundDatabase and it has no effect
Can anybody help me?
Beta Was this translation helpful? Give feedback.
All reactions