Skip to content
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

Update use-data-table.ts #452

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Update use-data-table.ts #452

merged 1 commit into from
Jul 12, 2024

Conversation

jpainam
Copy link
Contributor

@jpainam jpainam commented Jun 25, 2024

No need to decouple the useEffect of server side sorting with the useEffect that sends page, and per_page.

Your current implement doesn't send per_page when the table loads. This is necessarily when geting the first page from the server.

No per_page in the first run

image

No need to decouple the useEffect of server side sorting with the useEffect that request page, and per_page.

Your current implement doesn't send per_page when the table loads. This is necessarily when geting the first page from the server.
Copy link

vercel bot commented Jun 25, 2024

@jpainam is attempting to deploy a commit to the sadmann7 Team on Vercel.

A member of the Team first needs to authorize it.

@sadmann7
Copy link
Owner

sorry didn't notice this pr

thanks a lot

@sadmann7 sadmann7 merged commit cdb02c5 into sadmann7:main Jul 12, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants