TanStackT
TanStack3y ago
3 replies
colossal-harlequin

v8 React Table Filters as URL Query Parameters

Hi -

I'm looking for some guidance on the best way to get table filters into the URL as query parameters.

What I'd like is for the user to either be able to interact with the table to update filters/sorts and then have the URL query parameters updated and vice versa. I'd also like to be able to support having multiple tables on the same page.

I currently have a working table: https://github.com/Minnesota-Computer-Club/MCC-Website-v2/blob/main/components/Table/index.js

I know there has been lots of discussion in this channel about this type of functionality, but I haven't really stumbled across a conversation about why this might be a good or bad idea, some of the different approaches, etc.

Thanks!
GitHub
Version 2 (v2) of the Minnesota Computer Club website. - Minnesota-Computer-Club/MCC-Website-v2
MCC-Website-v2/components/Table/index.js at main · Minnesota-Comput...
Was this page helpful?