useIfiniteQuery with additional query params #4647
Unanswered
renanfcamara
asked this question in
Q&A
Replies: 1 comment
-
code looks good. show a codesandbox reproduction please |
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.
-
Hi, im currently developing an timeline page with useIfiniteQuery and an InfiniteScroll
i have 3 possible params to my endpoint: page, sort and search
i can add sort and search to my dependency key, but when i scroll down to fetch more data, my endpoint is fetching with olders params but page.
Here is my code:
After change my sort to
{ favorites: -1 }
payload when fires pagination
Im wondering, there's any way to preserve my
sort
andsearch
?Beta Was this translation helpful? Give feedback.
All reactions