Skip to content

Commit

Permalink
Add replay main thread delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
Qata committed Jul 30, 2021
1 parent c1cefae commit 7cc6782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/RecombinePackage/Store/BaseStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public class BaseStore<State: Equatable, RawAction, RefinedAction>: StoreProtoco
}
// Cancel if dispatch is manually reenabled.
.prefix(untilOutputFrom: $dispatchEnabled.filter { $0 })
.receive(on: DispatchQueue.main)
.sink(
receiveCompletion: { _ in
self.dispatchEnabled = true
Expand Down

0 comments on commit 7cc6782

Please sign in to comment.