Replies: 3 comments 6 replies
-
|
Can you show the code of what you are doing with useQueries? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, I don't use it at the moment, because when I was migrating I checked against the functionality and found that there was no similar design, I have a feeling that I might use it later so I would like to learn about it |
Beta Was this translation helpful? Give feedback.
-
|
Hey! I've got a pretty simple use case of Tanstack's Let's assume, that we have a dynamic list of URLs we have to use to download files. In the component, I would like to track this list and download the files. Here is how I could possibly do it using Tanstack: const urls = ref<string[]>([]);
const queries = useQueries({
queries: computed(() => {
return urls.value.map(url => {
return queryOptions({
queryKey: ['download-file', url],
queryFn() {
return fetch(url);
}
});
})
})
})The idea is the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
Thanks for the great work on this library!
I’m currently migrating to Pinia Colada from TanStack Query.I'd like to know how to achieve a similar effect with useQueries in colada!
https://tanstack.com/query/v5/docs/framework/vue/reference/useQueries
Beta Was this translation helpful? Give feedback.
All reactions