@bity/data-stores
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -82,4 +82,3 @@ export default function createDaemon(options = {}) { | ||
}).catch(error => { | ||
console.error(error); | ||
onDataLoadingFailed(store); | ||
onDataLoadingFailed(store, error); | ||
@@ -86,0 +85,0 @@ if (!hasDataListeners()) { |
@@ -35,5 +35,6 @@ export default function createData(options = {}) { | ||
function onDataLoadingFailed(store) { | ||
function onDataLoadingFailed(store, error) { | ||
store.dispatch({ | ||
type: DATA_LOADING_FAILED | ||
type: DATA_LOADING_FAILED, | ||
payload: error | ||
}); | ||
@@ -46,3 +47,4 @@ } | ||
return { ...state, | ||
isDataLoading: true | ||
isDataLoading: true, | ||
error: undefined | ||
}; | ||
@@ -53,3 +55,4 @@ | ||
isDataLoading: false, | ||
data: action.payload | ||
data: action.payload, | ||
error: undefined | ||
}; | ||
@@ -59,3 +62,4 @@ | ||
return { ...state, | ||
isDataLoading: false | ||
isDataLoading: false, | ||
error: action.payload | ||
}; | ||
@@ -62,0 +66,0 @@ |
@@ -114,6 +114,3 @@ import { DIRECTIONS } from '@bity/models/data/currencies'; | ||
// based on our original selection | ||
order.directionToBasePriceOn = directionToBasePriceOn; // Required to tell the difference between an order set by user or by the | ||
// request. | ||
order.isRemotelyFetched = true; | ||
order.directionToBasePriceOn = directionToBasePriceOn; | ||
return order; | ||
@@ -120,0 +117,0 @@ }); |
{ | ||
"name": "@bity/data-stores", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
403
10426