Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/ViewStore/ViewStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ public protocol ViewStore: ObservableObject {
/// - Parameter action: The action to perform.
func send(_ action: Action)
}

/// Default implementation that allows stores with no actions to send to ignore this function requirement in the protocol.
public extension ViewStore {
func send(_ action: Never) {}
}