Proposal: Extend support for combined queries #10216
Unanswered
jasongerbes-vista
asked this question in
Ideas
Replies: 0 comments
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.
-
Query options make it easy to encapsulate and reuse individual query configurations across hooks and
queryClientmethods:The same options can also be passed to
useQueriesto combine multiple queries together:However, combined queries are limited to the
useQuerieshook. There is currently:queries+combineinto a reusable options object.queryClientmethods for fetching or prefetching combined queries on the server.Proposal
Introduce a
combineQueryOptionsutility that applies thequeryOptionspattern to combined queries:And add methods to
queryClientthat support combined query options:This would allow combined queries to be just as reusable and portable as individual queries, and enable server-side fetching/prefetching of combined queries.
Beta Was this translation helpful? Give feedback.
All reactions