diff --git a/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved index bf1dbb9b6b1a..004a4d78ce31 100644 --- a/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -41,8 +41,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-clocks", "state" : { - "revision" : "d1fd837326aa719bee979bdde1f53cd5797443eb", - "version" : "1.0.0" + "revision" : "a8421d68068d8f45fbceb418fbf22c5dad4afd33", + "version" : "1.0.2" } }, { @@ -149,8 +149,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swiftui-navigation.git", "state" : { - "revision" : "a3aa5d46e8bf174d773d23b030f1c103999398ac", - "version" : "1.1.0" + "revision" : "78f9d72cf667adb47e2040aa373185c88c63f0dc", + "version" : "1.2.0" } }, { diff --git a/Sources/ComposableArchitecture/Store.swift b/Sources/ComposableArchitecture/Store.swift index bf6ddf74157f..13b5cb77e52e 100644 --- a/Sources/ComposableArchitecture/Store.swift +++ b/Sources/ComposableArchitecture/Store.swift @@ -153,12 +153,13 @@ public final class Store { withDependencies prepareDependencies: ((inout DependencyValues) -> Void)? = nil ) where R.State == State, R.Action == Action { if let prepareDependencies = prepareDependencies { - let (initialState, reducer) = withDependencies(prepareDependencies) { - (initialState(), reducer()) + let (initialState, reducer, dependencies) = withDependencies(prepareDependencies) { + @Dependency(\.self) var dependencies + return (initialState(), reducer(), dependencies) } self.init( initialState: initialState, - reducer: reducer.transformDependency(\.self, transform: prepareDependencies) + reducer: reducer.dependency(\.self, dependencies) ) } else { self.init(