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 818aa1c + 6ef32b4 commit fa7d476Copy full SHA for fa7d476
1 file changed
Sources/ViewStore/ViewStore.swift
@@ -23,3 +23,8 @@ public protocol ViewStore: ObservableObject {
23
/// - Parameter action: The action to perform.
24
func send(_ action: Action)
25
}
26
+
27
+/// Default implementation that allows stores with no actions to send to ignore this function requirement in the protocol.
28
+public extension ViewStore {
29
+ func send(_ action: Never) {}
30
+}
0 commit comments