T
TanStack12mo ago
continuing-cyan

Re fetching with React Query when the URL changes?

Hi all - I've been trying to implement a system where a paginated API call is made using React query but using the URL parameters to control the requests using the Route API and the recommended approach for search parameters. I've been experimenting with the loaderDeps but can't seem to get it working. For instance increasing the page number by 1 is intiated using a <Link> taking the user to the search url page (+1) and I was hoping then would re request through react query with the updated filters. I was looking to achieve this solely through this approach if possible. Cheers!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?