(action: Action<TData, TError, TVariables, TContext>)
| 253 | } |
| 254 | |
| 255 | private dispatch(action: Action<TData, TError, TVariables, TContext>): void { |
| 256 | this.state = reducer(this.state, action) |
| 257 | |
| 258 | notifyManager.batch(() => { |
| 259 | this.observers.forEach(observer => { |
| 260 | observer.onMutationUpdate(action) |
| 261 | }) |
| 262 | this.mutationCache.notify(this) |
| 263 | }) |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | export function getDefaultState< |
no test coverage detected