useTokenPagination #1762
Replies: 9 comments 1 reply
-
Indeed. It's also undocumented and pretty experimental. I've been visiting it with new ideas here and there, but I don't think it's ready for prime time yet. |
Beta Was this translation helpful? Give feedback.
-
I had to fork an early version to get it doing what I needed - but the token style iteration seems very backend specific. |
Beta Was this translation helpful? Give feedback.
-
I would love any feedback or ideas you have for it. Yes I agree, it's pretty specific to something like apollo and graphql vs general token pagination. |
Beta Was this translation helpful? Give feedback.
-
I'd really love an example of how to perform token pagination with something like graphql. Is |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Any updates on these guys? Any workaround etc? |
Beta Was this translation helpful? Give feedback.
-
@egemon @sparkle32817
If your client can't parse the cursor, you will have to rely on other information to manage pagination -- any sort of count details the server returns, whether it returns an empty array or Generally, it seems to me that the implementation details of remote pagination is outside the scope of react-table, and the reference to Finally, I may be implementing something like this myself shortly; if I get permission, I'll share an example in this thread, or maybe as a react-query plugin if its polished enough. |
Beta Was this translation helpful? Give feedback.
-
Just wondering if there's been any updates on TanStack Table's handling of token-based pagination? Considering it's only really relevant in cases where the "total numer of available records" isn't known, @TastyDucks' answer isn't really helpful. I understand if it's still considered out of scope, just wondering if there's an update. |
Beta Was this translation helpful? Give feedback.
-
This makes tanstack/table pretty useless if your API uses cursor-based pagination (which is a LOT of APIs!, Stripe as an example https://docs.stripe.com/api/pagination). How am I supposed to paginate in a cursor-based manner rather than an offset-based manner? |
Beta Was this translation helpful? Give feedback.
-
Looks like useTokenPagination hasn't been updated to match the new interface.
Beta Was this translation helpful? Give feedback.
All reactions