-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGrid] Option to Disable Pagination while server request is loading #2843
Comments
Hi, @asyrialaK thanks for raising this. A possible solution is for you to provide your own pagination via the |
Thanks for providing a workaround for this! That approach would definitely enable us to prevent multiple paging to prevent bad pagination. I'd love to see something like this baked into the base tables loading state to be able handle cursor-based server data by default. |
idk why we still have to make some workaround for this :( |
I'm using 6.8.0 and we can pass prop
with the default |
Be careful when using this though because this will overwrite the default behavior of the previous and next buttons to be disabled on the first and last page, respectively. |
Duplicates
Latest version
Summary 💡
When i am using server side pagination my goal is for a user to be able paginate and get the next page.
We are using a graphQL API, and cursor based pagination. For pagination to work as intended, we need the request for the current page to complete, so we can get the cursors for the next page. As a result, we'd like the ability to disable the pagination buttons while content loads.
The inability to do this allows a user to hit next page any amount of times, and still request content based off the next page from the content currently being displayed.
An easy way to replicate this would be to hook up a table to server data with cursor based pagination, then throttle your speed. Then do the following
Examples 🌈
No response
Motivation 🔦
I am trying to use the datagrid in a way where server side pagination using cursors provides us the ability to go to the next page and reliably get the next results.
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: