Skip to content

Commit

Permalink
Update use-promise.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarDev authored Sep 15, 2023
1 parent 04263e3 commit ee4962e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/docs/pages/react-hooks/hooks/use-promise.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const getData = () => {
});
};

const { item, isLoading, error } = usePromise(getData);
const getDataPromise = getData();
const { item, isLoading, error } = usePromise(getDataPromise);
```

## Inspect
Expand Down

0 comments on commit ee4962e

Please sign in to comment.