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 7eaaf82 + a9c3fec commit 3054dfeCopy full SHA for 3054dfe
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