13 lines
297 B
Swift
13 lines
297 B
Swift
import Combine
|
|
|
|
final class MessagesMiddleware {
|
|
static let shared = MessagesMiddleware()
|
|
|
|
func middleware(state _: AppState, action: AppAction) -> AnyPublisher<AppAction, Never> {
|
|
switch action {
|
|
default:
|
|
return Empty().eraseToAnyPublisher()
|
|
}
|
|
}
|
|
}
|