~ 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 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