From af269a2a780104c66b75d6192c70110e684f3865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=BD=E9=BE=99?= Date: Fri, 25 Oct 2019 14:15:40 +0800 Subject: [PATCH] fix: eslint auto add deps bug --- src/usePagination/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usePagination/index.ts b/src/usePagination/index.ts index 91886d40c3..33093b60e8 100644 --- a/src/usePagination/index.ts +++ b/src/usePagination/index.ts @@ -96,7 +96,7 @@ function usePagination( if (formattedResult.pageSize) setPageSize(formattedResult.pageSize); } }); - }, [current, pageSize, count, run, formatResult]); + }, [current, pageSize, count]); useUpdateEffect(() => { setCurrent(1);