Replies: 1 comment
-
|
This was bugged but it's fixed now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Handling useInfiniteQuery with filters and pagination
Problem Description
I'm implementing an infinite scroll list with filters using
useInfiniteQuery. When filters change, I need to reset the pagination to start from page 1, but I'm having trouble managing the page state properly.Current Implementation
Current Behavior
nextPageref that I try to reset when filters changewatchDeepto detect filter changes and reset the pageExpected Behavior
When filters change:
Questions
useInfiniteQuery?Additional Context
Any guidance on the best practices for this scenario would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions