Skip to content

Commit

Permalink
fix: eslint auto add deps bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brickspert committed Oct 25, 2019
1 parent 0c1e942 commit af269a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usePagination/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function usePagination<Result, Item>(
if (formattedResult.pageSize) setPageSize(formattedResult.pageSize);
}
});
}, [current, pageSize, count, run, formatResult]);
}, [current, pageSize, count]);

useUpdateEffect(() => {
setCurrent(1);
Expand Down

0 comments on commit af269a2

Please sign in to comment.