Skip to content

Commit 64e566d

Browse files
committed
Fix ViewStore bug in OSs that don't support Combine.
1 parent ade6d61 commit 64e566d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComposableArchitecture/ViewStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ public final class ViewStore<State, Action> {
8686
#if canImport(Combine)
8787
if #available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *) {
8888
self.objectWillChange.send()
89-
self._state.value = $0
9089
}
9190
#endif
91+
self._state.value = $0
9292
}
9393
}
9494

0 commit comments

Comments
 (0)