diff --git a/package.json b/package.json index b89bcd9..c91af6a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@barteh/react-withservice", - "version": "1.0.62", + "version": "1.0.63", "description": "A HOC injects and manages observable data services in a react Component", "main": "index.js", "scripts": { diff --git a/src/useService.js b/src/useService.js index 858cb93..32c39c6 100644 --- a/src/useService.js +++ b/src/useService.js @@ -58,7 +58,7 @@ export default function useService(service, ...params) { function retry() { setRet(new AUseServiceReturnType("loading")); - service.refresh(...params); + return service.refresh(...params); } const [ret,