diff --git a/Sources/RxComposableArchitecture/Store.swift b/Sources/RxComposableArchitecture/Store.swift index 5743af8..59b1cd0 100644 --- a/Sources/RxComposableArchitecture/Store.swift +++ b/Sources/RxComposableArchitecture/Store.swift @@ -522,9 +522,19 @@ private struct Scope: AnyScope { } public struct StoreConfig { - public let useNewScope: () -> Bool - public let mainThreadChecksEnabled: () -> Bool - public let cancelsEffectsOnDeinit: () -> Bool + public var useNewScope: () -> Bool + public var mainThreadChecksEnabled: () -> Bool + public var cancelsEffectsOnDeinit: () -> Bool + + public init( + useNewScope: @escaping () -> Bool, + mainThreadChecksEnabled: @escaping () -> Bool, + cancelsEffectsOnDeinit: @escaping () -> Bool + ) { + self.useNewScope = useNewScope + self.mainThreadChecksEnabled = mainThreadChecksEnabled + self.cancelsEffectsOnDeinit = cancelsEffectsOnDeinit + } } extension StoreConfig {