cubekit-castle
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -56,2 +56,10 @@ 'use strict'; | ||
} | ||
}, function (error) { | ||
var errorAction = _this.errorAction(error, params); | ||
if (errorAction) { | ||
return dispatch(errorAction); | ||
} | ||
throw error; | ||
}); | ||
@@ -113,2 +121,16 @@ }; | ||
} | ||
/** | ||
* If you want to dispatch some action when your | ||
* mutation is failed - just implement this method | ||
* and return the action from it. | ||
* | ||
* @memberOf Packages.Data.MutationBase | ||
* @protected | ||
*/ | ||
}, { | ||
key: 'errorAction', | ||
value: function errorAction(params) { | ||
return null; | ||
} | ||
}]); | ||
@@ -115,0 +137,0 @@ |
{ | ||
"name": "cubekit-castle", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
118729
2574