mirror of https://github.com/buresdv/Cork
~ Dependency injection weirdness
This commit is contained in:
parent
573daf9930
commit
577616dcc7
|
|
@ -8,24 +8,24 @@
|
|||
import AppKit
|
||||
import CorkNotifications
|
||||
import CorkShared
|
||||
import FactoryKit
|
||||
import Foundation
|
||||
import Observation
|
||||
@preconcurrency import UserNotifications
|
||||
import FactoryKit
|
||||
|
||||
/*
|
||||
extension Container
|
||||
{
|
||||
@MainActor
|
||||
var appState: Factory<AppState>
|
||||
{
|
||||
self {
|
||||
MainActor.assumeIsolated
|
||||
{
|
||||
AppState()
|
||||
}
|
||||
self
|
||||
{ @MainActor in
|
||||
AppState()
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/// Class that holds the global state of the app, excluding services
|
||||
@Observable @MainActor
|
||||
|
|
|
|||
Loading…
Reference in New Issue