From 577616dcc75ea45eaa873690acb52aca5a4680ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Bures=CC=8C?= Date: Tue, 16 Sep 2025 20:49:38 +0200 Subject: [PATCH] ~ Dependency injection weirdness --- Cork/App State.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cork/App State.swift b/Cork/App State.swift index bf631ab0..8c9ba154 100644 --- a/Cork/App State.swift +++ b/Cork/App State.swift @@ -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 { - self { - MainActor.assumeIsolated - { - AppState() - } + self + { @MainActor in + AppState() } } } + */ /// Class that holds the global state of the app, excluding services @Observable @MainActor