@brightleaf/react-hooks
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -12,3 +12,4 @@ "use strict"; | ||
return { ...state, | ||
loading: true | ||
loading: true, | ||
complete: false | ||
}; | ||
@@ -18,3 +19,4 @@ | ||
return { ...state, | ||
loading: true | ||
loading: true, | ||
complete: false | ||
}; | ||
@@ -26,3 +28,4 @@ | ||
error: null, | ||
loading: false | ||
loading: false, | ||
complete: true | ||
}; | ||
@@ -34,3 +37,4 @@ | ||
error: action.payload.error, | ||
loading: false | ||
loading: false, | ||
complete: true | ||
}; | ||
@@ -37,0 +41,0 @@ |
@@ -49,7 +49,3 @@ "use strict"; | ||
makeRequest | ||
} = (0, _useRequest.default)(url, { | ||
data: [], | ||
error: null, | ||
loading: false | ||
}); | ||
} = (0, _useRequest.default)(url); | ||
const fullConfig = (0, _mergeDeep.mergeDeep)(defaultConfig, config); | ||
@@ -56,0 +52,0 @@ /** |
@@ -49,7 +49,3 @@ "use strict"; | ||
makeRequest | ||
} = (0, _useRequest.default)(url, { | ||
data: [], | ||
error: null, | ||
loading: false | ||
}); | ||
} = (0, _useRequest.default)(url); | ||
const fullConfig = (0, _mergeDeep.mergeDeep)(defaultConfig, config); | ||
@@ -56,0 +52,0 @@ /** |
@@ -47,3 +47,4 @@ "use strict"; | ||
error: null, | ||
loading: false | ||
loading: false, | ||
complete: false | ||
}); | ||
@@ -50,0 +51,0 @@ const fullConfig = (0, _mergeDeep.mergeDeep)(defaultConfig, config); |
{ | ||
"name": "@brightleaf/react-hooks", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Useful react hooks", | ||
@@ -5,0 +5,0 @@ "files": [ |
55050
1477