You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change in the value of defaultSortFieldId and paginationPerPage is not reflected when it is set externally.
To Reproduce
Steps to reproduce the behavior:
Render a table. Pass a getter of a hook to paginationPerPage and defaultSortFieldId. Add a null check.
Now set the value of the prop in the use effect that runs on a page load. The updated value is not reflected in the table. The change is only reflected when sort icon is clicked or paginationPerChange is set from the ui.
Expected behavior
The table should rerender when the prop value changes. (Even when set from the code and not ui)
Code Sandbox, Screenshots, or Relevant Code
In this code, the state of pagination and sorting is restored from redux and then the state is updated.
const reStoreReduxState = (reduxKey: string) => {
Describe the bug
The change in the value of defaultSortFieldId and paginationPerPage is not reflected when it is set externally.
To Reproduce
Steps to reproduce the behavior:
Render a table. Pass a getter of a hook to paginationPerPage and defaultSortFieldId. Add a null check.
Now set the value of the prop in the use effect that runs on a page load. The updated value is not reflected in the table. The change is only reflected when sort icon is clicked or paginationPerChange is set from the ui.
Expected behavior
The table should rerender when the prop value changes. (Even when set from the code and not ui)
Code Sandbox, Screenshots, or Relevant Code
In this code, the state of pagination and sorting is restored from redux and then the state is updated.
const reStoreReduxState = (reduxKey: string) => {
}
<DataTable
The text was updated successfully, but these errors were encountered: