Pagination not returning all MaterialReactTable values when sorting by a column with NULL values #2953
|
I have an interesting problem affecting multiple applications where MaterialReactTable rows are not displaying. This is occurring if a column is sorted that has NULL values. If the 1st page displayed has no NULL values and the 2nd page begins with NULL values (or 1st page has ALL NULL values, and following page do not), all the following pages will only display rows where that column is not NULL (if 1st page not NULL) or NULL (if the 1st page had all NULL values in the sorted column) Example: If pagination is adjusted so the 1st page for sorted column shows both non-NULL and NULL values, then the following pages will show all the rows. However, if I change pagination to 5 and move to page 2 - no further rows display. Is this is known issue? |
Replies: 2 comments 5 replies
|
Aniruddh Munde (@Aniruddh25) Is this related? #2887 |








Hi jvisint sorry for the delay. I have investigated this issue and you're right it does have to do with null values. Basically, we end up in a scenario where we are making a comparison between columns and null that will never evaluate to true. Should have a fix for this coming in the near term. You can tra…