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
MCC-Website-v2/components/Table/index.js at main · Minnesota-Comput...
Version 2 (v2) of the Minnesota Computer Club website. - Minnesota-Computer-Club/MCC-Website-v2
3 Replies
fascinating-indigoOP•2y ago
Anyone have thoughts on this?
sensitive-blue•2y ago
@Tanner Linsley now that tanstack router is v1 it would be great to see some documentation/guidance on using it with tanstack table, especially since tsr is very focused on enabling search parameter usage
genetic-orange•2y ago
Agreed. We’re working on Table stuff a bit more now. @KevinVandy let’s take note of this request