gregnb / gregnb/mui-datatables
Start with page 0 on new result set
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
I'm using the data tables with server side filtering, to be able to adapt the result set. When i go through the pages (client side pagination is enabled) and decide to tweak my server side search and get a new result set, the datatable stays on the page number i viewed before.
## Expected Behavior
The datatable should start with page 0 when it gets a new result set. (i set the option page=0 already)
## Your Environment
| Tech | Version |
|--------------|---------|
| Material-UI | 4.6.0 |
| MUI-datatables | 2.13.3 |
| React | 16.11.0 |
| browser | Chrome latest |
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are named. Start by reproducing the issue with server-side filtering and client-side pagination in the datatable, then trace how a new result set affects the current page. Done means that changing the search resets the table to page 0, including when the page=0 option is set.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100