Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning when adding pagination info to tablePropsInit #78

Closed
boverU opened this issue Aug 10, 2020 · 1 comment · Fixed by #79
Closed

Warning when adding pagination info to tablePropsInit #78

boverU opened this issue Aug 10, 2020 · 1 comment · Fixed by #79
Assignees
Labels
bug Something isn't working

Comments

@boverU
Copy link

boverU commented Aug 10, 2020

when adding this piece of code paging: { enabled: true, pageIndex: 1, pageSize: 10, }, from demo, run into the following error - Cannot update a component (KaTable) while rendering a different component (PagingPages). To locate the bad setState() call inside PagingPages, follow the stack trace as described in https://fb.me/setstate-in-render.
Passing the total number of elements like so
useEffect(() => { dispatch(updatePagesCount(props.total)); }, [props.total]);

@komarovalexander komarovalexander self-assigned this Aug 10, 2020
@komarovalexander komarovalexander added the bug Something isn't working label Aug 10, 2020
@komarovalexander
Copy link
Owner

komarovalexander commented Aug 10, 2020

Fixed in 4.3.2
Thanks for finding this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants