tRPCttRPC
Powered by
AdnanA
tRPC•3y ago•
2 replies
Adnan

How can I reset the cursor when using useInfiniteQuery?

I have various filters that I can set for the query, but when setting those filters I need to reset the cursor to undefined before setting the filter.

Right now when I set the filter, the last cursor is always being sent. How can I reset it?

What I've tried is calling invalidate and reset on the query, but the cursor is not being set to undefined as can be seen in the screenshot.

Any ideas? Thanks! 🙂
image.png
image.png
image.png
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

useInfiniteQuery
lLl / ❓-help
3y ago
How can I access the session in fastify when using `useWSS: true`?
MrJohzMMrJohz / ❓-help
11mo ago