The table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, context menus, nesting, Gmail-style batch row selection, dark theme, and more.
Describe the bug
When pagination is enabled and assigned value to totalRecords is undefined pagination component shows 1, '...', '...'.
To Reproduce
Steps to reproduce the behavior:
Set totalRecords to undefined at the beginning
See error
Expected behavior
totalRecords value might be undefined at the beginning or can be set to a defined value like query.data?.totalElements ?? 20. But it doesn't update the pagination state when query.data.totalElements is defined.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Describe the bug When pagination is enabled and assigned value to totalRecords is undefined pagination component shows 1, '...', '...'.
To Reproduce Steps to reproduce the behavior:
Expected behavior totalRecords value might be undefined at the beginning or can be set to a defined value like
query.data?.totalElements ?? 20
. But it doesn't update the pagination state when query.data.totalElements is defined.Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):