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 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue