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.
1 parent 03348c1 commit e3ecbfeCopy full SHA for e3ecbfe
Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift
@@ -345,6 +345,13 @@ public class LiveViewCoordinator<R: RootRegistry>: ObservableObject {
345
}
346
347
func join(_ liveChannel: LiveViewNativeCore.LiveChannel) {
348
+ if let old = self.liveChannel {
349
+ let channel = old.channel()
350
+ Task { @MainActor in
351
+ try await channel.shutdown()
352
+ }
353
354
+
355
self.liveChannel = liveChannel
356
let channel = liveChannel.channel()
357
self.channel = channel
0 commit comments