Skip to content

Commit f7e5fc3

Browse files
committed
Removed unneeded/unwanted .receive for renderings
Fixed typo
1 parent df588ec commit f7e5fc3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Workflow/Sources/WorkflowHost.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public final class WorkflowHost<WorkflowType: Workflow>: WorkflowOutputPublisher
4141
// @testable
4242
let rootNode: WorkflowNode<WorkflowType>
4343

44-
private let muableRendering: CurrentValueSubject<WorkflowType.Rendering, Never>
44+
private let mutableRendering: CurrentValueSubject<WorkflowType.Rendering, Never>
4545
private let outputSubject = PassthroughSubject<WorkflowType.Output, Never>()
4646

4747
/// Represents the `Rendering` produced by the root workflow in the hierarchy. New `Rendering` values are produced
@@ -83,7 +83,7 @@ public final class WorkflowHost<WorkflowType: Workflow>: WorkflowOutputPublisher
8383
parentSession: nil
8484
)
8585

86-
(self.rendering, self.muableRendering) = ReadOnlyCurrentValueSubject.publisher(value: rootNode.render())
86+
(self.rendering, self.mutableRendering) = ReadOnlyCurrentValueSubject.publisher(value: rootNode.render())
8787

8888
rootNode.enableEvents()
8989

WorkflowUI/Sources/Hosting/WorkflowHostingController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public final class WorkflowHostingController<ScreenType, Output>: WorkflowUIView
8282
self.cancellable = workflowHost
8383
.rendering
8484
.dropFirst()
85-
.receive(on: DispatchQueue.main)
8685
.sink(receiveValue: { [weak self] screen in
8786
guard let self else { return }
8887

0 commit comments

Comments
 (0)