Skip to content

Commit

Permalink
v1.0.63
Browse files Browse the repository at this point in the history
useervice fixed
now retry() returns Promise
  • Loading branch information
ahadrt committed Nov 12, 2019
1 parent 6383f4e commit 1f22e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/useService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f22e3e

Please sign in to comment.