Skip to content

Commit

Permalink
fix: πŸ› memoized does not receive arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Dec 19, 2018
1 parent fdcd92d commit 244a533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const useAsync = <T>(fn: () => Promise<T>, args?) => {

useEffect(() => {
let mounted = true;
const promise = memoized.apply(this, args);
const promise = memoized();

promise
.then(value => {
Expand Down

0 comments on commit 244a533

Please sign in to comment.