We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6b6d4e + 9a01c73 commit 5b0267bCopy full SHA for 5b0267b
Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift
@@ -314,7 +314,9 @@ public class LiveViewCoordinator<R: RootRegistry>: ObservableObject {
314
315
func bindDocumentListener() {
316
let handler = SimplePatchHandler()
317
- patchHandlerCancellable = handler.patchEventSubject.sink { [weak self] patch in
+ patchHandlerCancellable = handler.patchEventSubject
318
+ .receive(on: DispatchQueue.main)
319
+ .sink { [weak self] patch in
320
switch patch.data {
321
case .root:
322
// when the root changes, update the `NavStackEntry` itself.
0 commit comments