T
TanStack4y ago
quickest-silver

Chained query

Hi, I am trying to find a way to use react-query to make a set of queries where the URL of the next query is part of the previous query response. Eg: API response for first query will be like { ...., meta: { next: <next_paginated_query_url> } } TIA.
2 Replies
unwilling-turquoise
unwilling-turquoise4y ago
infinite queries with getNextPageParam sounds like what you'd want
quickest-silver
quickest-silverOP4y ago
Thanks that seems to what I was looking for.

Did you find this page helpful?