use-dcp-worker
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -71,3 +71,3 @@ import BigNumber from 'bignumber.js'; | ||
submitting: boolean; | ||
error: Error | boolean; | ||
error: Error | undefined; | ||
} | ||
@@ -74,0 +74,0 @@ interface IDefaultWorkerStats { |
@@ -29,3 +29,3 @@ "use strict"; | ||
submitting: false, | ||
error: false, | ||
error: undefined, | ||
}; | ||
@@ -83,3 +83,2 @@ let hasStartedWorkerInit = false, optionsError = false; | ||
case WorkerStateActions.ERROR: | ||
console.error('use-dcp-worker: Worker error occured:', action.data); | ||
updatedState.error = action.data; | ||
@@ -439,2 +438,4 @@ break; | ||
return dispatchWorkerState({ type: WorkerStateActions.ERROR, data: payload }); | ||
// Successful fetch, so clear any errors from a previous fetch. | ||
dispatchWorkerState({ type: WorkerStateActions.ERROR, data: undefined }); | ||
// extra delay for cleaner UI visual updates between quick fetching states | ||
@@ -441,0 +442,0 @@ setTimeout(() => { |
{ | ||
"name": "use-dcp-worker", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Embed the DCP Worker in a React app", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
72600
1208