nuqs icon indicating copy to clipboard operation
nuqs copied to clipboard

doc: add tanstack multiple paginations example

Open stychu opened this issue 1 year ago • 5 comments

Update the documentation with a pagination example how to use multiple pagination/tables with nuqs and search params.

stychu avatar Feb 07 '25 17:02 stychu

@stychu is attempting to deploy a commit to the 47ng Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 07 '25 17:02 vercel[bot]

Thanks! There are a few other PRs related to TanStack Table parsers & docs, I'll have to see how to best combine them.

Regarding "namespacing" keys in the URL to support multiple instances of a component without state overlap, I was thinking of adding a prefix option for the urlKeys feature, that would still return the state names as declared, but add that prefix automatically in the URL, what do you think?

franky47 avatar Feb 07 '25 21:02 franky47

Regarding "namespacing" keys in the URL to support multiple instances of a component without state overlap, I was >thinking of adding a prefix option for the urlKeys feature, that would still return the state names as declared, but add that >prefix automatically in the URL, what do you think?

Sure that will also do ! But for our use case if we go with two separate params per pagination the url will become a mess quickly as we have 3-10 tables per url so with array param its much cleaner.

stychu avatar Feb 10 '25 11:02 stychu

I am the author for the related PR https://github.com/47ng/nuqs/pull/836 :) Feel free to let me know if there's anything that I can help with adding Tanstack Table as community examples. @franky47

junwen-k avatar Feb 13 '25 14:02 junwen-k

@junwen-k thanks, I've had your PR in my review list for way too long (sorry about that), I need to take some time at some point to do a good pass on all docs related PRs.

franky47 avatar Feb 13 '25 14:02 franky47