@symbolic/react-app
Advanced tools
Comparing version 1.3.20 to 1.3.21
{ | ||
"name": "@symbolic/react-app", | ||
"version": "1.3.20", | ||
"version": "1.3.21", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -19,20 +19,21 @@ import _ from 'lodash'; | ||
if (isAsync) { | ||
var _getPayload = async () => await getPayload({getState, prevState, [superType]: prevState, ...props}); | ||
(async () => { | ||
var _getPayload = async () => await getPayload({getState, prevState, [superType]: prevState, ...props}); | ||
dispatch({type: `${type}.begin`, payload: {...prevState, isLoading: true}}); | ||
try { | ||
var payload = await _getPayload(); | ||
dispatch({type: `${type}.begin`, payload: {...prevState, isLoading: true}}); | ||
dispatch({type: `${type}.success`, payload: {isLoading: false, ...payload}}); | ||
} | ||
catch (error) { | ||
console.error(error); //eslint-disable-line | ||
dispatch({type: `${type}.failure`, payload: {isLoading: false}}); | ||
throw error; | ||
} | ||
try { | ||
var payload = await _getPayload(); | ||
dispatch({type: `${type}.success`, payload: {isLoading: false, ...payload}}); | ||
} | ||
catch (error) { | ||
console.error(error); //eslint-disable-line | ||
dispatch({type: `${type}.failure`, payload: {isLoading: false}}); | ||
throw error; | ||
} | ||
})(); | ||
} | ||
@@ -39,0 +40,0 @@ else { |
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
21422
543