Skip to content

Dynamic number of queries #493

Discussion options

You must be logged in to vote

Use only one useQuery and retrive the all required data in your fetch function.

results = useQuery(['todos', config], () => Promise.all(...))

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@agriffis
Comment options

@tannerlinsley
Comment options

@agriffis
Comment options

@lukaszmakuch
Comment options

@tannerlinsley
Comment options

Answer selected by agriffis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants