File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -247,15 +247,17 @@ class Reactor {
247
247
248
248
// let each core handle the message
249
249
this . __stores . forEach ( ( store , id ) => {
250
- var currState = state . get ( id ) , newState , dispatchError
251
-
250
+ var currState = state . get ( id )
251
+ var newState
252
+ var dispatchError
253
+
252
254
try {
253
255
newState = store . handle ( currState , actionType , payload )
254
256
} catch ( e ) {
255
257
dispatchError = e
256
258
}
257
-
258
- if ( this . debug && ( newState === undefined || dispatchError ) ) {
259
+
260
+ if ( this . debug && ( newState === undefined || dispatchError ) ) {
259
261
var error = dispatchError || 'Store handler must return a value, did you forget a return statement'
260
262
logging . dispatchError ( error )
261
263
throw new Error ( error )
You can’t perform that action at this time.
0 commit comments