diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-05-07 15:22:54 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-05-07 15:22:54 +0200 |
| commit | fdb4633d3e9158e457d57e820df6e1efb4df39c2 (patch) | |
| tree | 176cad99cb9befc0a65a7af02561019e811814de /Map/State/Store.swift | |
| parent | 75a0e4509a70055851b085f3f7293ae1cf48164c (diff) | |
Update to support notes + new style2.0.0
Diffstat (limited to 'Map/State/Store.swift')
| -rw-r--r-- | Map/State/Store.swift | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Map/State/Store.swift b/Map/State/Store.swift deleted file mode 100644 index 7860f33..0000000 --- a/Map/State/Store.swift +++ /dev/null @@ -1,18 +0,0 @@ -import Foundation - -final class Store<State, Action>: ObservableObject { - @Published private(set) var state: State - - private let reducer: Reducer<State, Action> - - init(initialState: State, reducer: @escaping Reducer<State, Action>) { - self.state = initialState - self.reducer = reducer - } - - func send(_ action: Action) { - reducer(&state, action) - } -} - -typealias Reducer<State, Action> = (inout State, Action) -> Void |