~ Dependency injection weirdness

This commit is contained in:
David Bureš 2025-09-16 20:49:38 +02:00
parent 573daf9930
commit 577616dcc7
No known key found for this signature in database
1 changed files with 6 additions and 6 deletions

View File

@ -8,24 +8,24 @@
import AppKit import AppKit
import CorkNotifications import CorkNotifications
import CorkShared import CorkShared
import FactoryKit
import Foundation import Foundation
import Observation import Observation
@preconcurrency import UserNotifications @preconcurrency import UserNotifications
import FactoryKit
/*
extension Container extension Container
{ {
@MainActor @MainActor
var appState: Factory<AppState> var appState: Factory<AppState>
{ {
self { self
MainActor.assumeIsolated { @MainActor in
{ AppState()
AppState()
}
} }
} }
} }
*/
/// Class that holds the global state of the app, excluding services /// Class that holds the global state of the app, excluding services
@Observable @MainActor @Observable @MainActor