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 9424b18 commit a9c3fecCopy full SHA for a9c3fec
Sources/ComposableArchitecture/Store.swift
@@ -343,7 +343,9 @@ public final class Store<State, Action>: _Store {
343
.sink { [weak self, weak parent] _ in
344
guard let scopeID = self?.scopeID
345
else { return }
346
- parent?.removeChild(scopeID: scopeID)
+ DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(300)) {
347
+ parent?.removeChild(scopeID: scopeID)
348
+ }
349
} receiveValue: { [weak self] _ in
350
guard let self else { return }
351
self._$observationRegistrar.withMutation(of: self, keyPath: \.currentState) {}
0 commit comments