Replies: 3 comments 1 reply
-
Looks super clean. Will look through it. |
Beta Was this translation helpful? Give feedback.
-
Amazing library I hadn't heard of before. I noticed that many times I felt that when using this table, I noticed that often the query params weren't being well reflected. It felt unresponsive and I noticed that sometimes when I removed one filter or swapped one to another, it would keep a dead nonexistent filter in the url. Many many cases. Maybe if we used this nuqs library then the chances of these bugs happening would be lower bc it would be easier to atomatically update and maintain? |
Beta Was this translation helpful? Give feedback.
-
nuqs just released v2, includes a testing adapter for URL and a community parser for TanstackTable. |
Beta Was this translation helpful? Give feedback.
-
I played a bit around with your template and tried https://nuqs.47ng.com/ for the query param handling.
Would it be an option for the tempate to use nuqs instead of the current implementation?
If you need some inspiration, here it is:
https://github.com/noxify/reactquerybuilder-nextjs-rsc-queryparams
Differences:
( Reason: we use prisma internally in our project )
Results in
pageIndex=0
instead ofpage=1
What could be the benefits?
For me, it was the easier handling while implementating custom query params.
I don't have to take care about all the
useEffect
magic in the code.( if you haven't mentioned, I removed most of them)
This results in shorter, for me, better maintainable code.
Since nuqs works also with RSC, there is no limitation.
If you want, I can provide a working with drizzle and the current filter implementation.
P.S: If you like the react querybuilder implementation for the advanced filter, feel free to copy ;)
Beta Was this translation helpful? Give feedback.
All reactions