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.
1 parent 02bfb1e commit 2b100ceCopy full SHA for 2b100ce
Sources/CoreTypes/Store.swift
@@ -46,8 +46,9 @@ public class Store<ObservableProperty: ObservablePropertyType>: StoreType where
46
guard dispatchingLock.try() else {
47
raiseFatalError("ReSwift:IllegalDispatchFromReducer - Reducers may not dispatch actions.")
48
}
49
- observable.value = reducer.transform(action, observable.value)
+ let value = reducer.transform(action, observable.value)
50
dispatchingLock.unlock()
51
+ observable.value = value
52
53
54
public func dispatch(_ actions: Action...) {
0 commit comments