Skip to content

Commit

Permalink
Merge pull request #109 from umijs/fix/eslint_deps
Browse files Browse the repository at this point in the history
fix: eslint auto add deps bug
  • Loading branch information
brickspert committed Oct 25, 2019
2 parents 0c1e942 + af269a2 commit 5b8d97b
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

1 comment on commit 5b8d97b

@vercel
Copy link

@vercel vercel bot commented on 5b8d97b Oct 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.