diff --git a/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved index 4e4dcf34f621..e8ca2895ba51 100644 --- a/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -68,8 +68,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-custom-dump", "state" : { - "revision" : "3ce83179e5f0c83ad54c305779c6b438e82aaf1d", - "version" : "1.2.1" + "revision" : "f01efb26f3a192a0e88dcdb7c3c391ec2fc25d9c", + "version" : "1.3.0" } }, { diff --git a/Sources/ComposableArchitecture/Effects/Publisher.swift b/Sources/ComposableArchitecture/Effects/Publisher.swift index d27292803ed8..4387e9396917 100644 --- a/Sources/ComposableArchitecture/Effects/Publisher.swift +++ b/Sources/ComposableArchitecture/Effects/Publisher.swift @@ -5,18 +5,11 @@ extension Effect { /// /// - Parameter createPublisher: The closure to execute when the effect is performed. /// - Returns: An effect wrapping a Combine publisher. - public static func publisher(_ createPublisher: @escaping () -> P) -> Self + public static func publisher(_ createPublisher: () -> P) -> Self where P.Output == Action, P.Failure == Never { Self( operation: .publisher( - withEscapedDependencies { continuation in - Deferred { - continuation.yield { - createPublisher() - } - } - } - .eraseToAnyPublisher() + createPublisher().eraseToAnyPublisher() ) ) }