diff --git a/Sources/CoreTypes/Store.swift b/Sources/CoreTypes/Store.swift index 4c87d59..48bc686 100644 --- a/Sources/CoreTypes/Store.swift +++ b/Sources/CoreTypes/Store.swift @@ -26,7 +26,7 @@ open class Store where ObservablePro public func dispatch(_ actions: Action...) { actions.forEach { action in - middleware.transform({ self.observable.value }, self.dispatch, action).forEach { action in + middleware.transform({ self.observable.value }, dispatch, action).forEach { action in observable.value = reducer.transform(action, observable.value) } }