sadmann7 / shadcn-table

A shadcn table component with server-side sorting, filtering, and pagination.
https://table.sadmn.com
MIT License
2.06k stars 175 forks source link

Update use-data-table.ts #452

Open jpainam opened 1 week ago

jpainam commented 1 week ago

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

vercel[bot] commented 1 week ago

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

A member of the Team first needs to authorize it.