Add pagination config as dependency for table setPage (#3708)

This commit is contained in:
Sherfin Shamsudeen 2022-08-01 13:42:08 +05:30 committed by GitHub
parent 534c44e9b9
commit 8cecd54248
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -812,7 +812,7 @@ export function Table({
setExposedVariable('pageIndex', targetPageIndex);
if (!serverSidePagination && clientSidePagination) gotoPage(targetPageIndex - 1);
},
['targetPageIndex']
[serverSidePagination, clientSidePagination]
);
useEffect(() => {