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 bf6dbd5 commit cfed874Copy full SHA for cfed874
Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift
@@ -268,12 +268,10 @@ public class LiveViewCoordinator<R: RootRegistry>: ObservableObject {
268
!channel.isClosed
269
{
270
await withCheckedContinuation { continuation in
271
- var ref: Int?
272
- ref = channel.onClose { [weak channel] _ in
273
- channel?.off("phx_close", ref: ref)
274
- continuation.resume()
275
- }
276
channel.leave()
+ .receive("ok") { _ in
+ continuation.resume()
+ }
277
}
278
279
channel = nil
0 commit comments