Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
38 views

I’m a Vue developer and I use @tanstack/vue-query to fetch data. I have a page with cards wrapped in router-link and infinite scrolling. The problem is when I scroll many times, go to a card (navigate ...
Feruz Atamyradow's user avatar
0 votes
0 answers
198 views

I'm using Vue 3 with Pinia Colada to manage server state. I have a useCollections composable that takes a reactive Ref for filtering, sorting, and pagination. The computed query key clearly changes (...
Rasik's user avatar
  • 2,529
0 votes
1 answer
62 views

const queryKey = ref("userData"); const { data, isLoading, error } = useQuery({ queryKey: [queryKey], // Chave única para identificar a consulta queryFn: async () => { ...
rodrigo's user avatar
0 votes
0 answers
60 views

I use vue and @tanstack/vue-query. it is my code: <a-select v-model="selectedPersonId" @search="handleSearch" @change="selectPerson" show-search ...
bego's user avatar
  • 23
1 vote
0 answers
766 views

I am working with vue-query (but I guess the answer for my question would also be complied with react query) with the call to API, in which I have a button to select between auto-refetch and manual ...
Jaisy's user avatar
  • 35
0 votes
1 answer
3k views

I'm having an issue where the scroll position resets on the data table but not on the virtual scroller component. Every time you scroll to the fetchNextPage threshold, it resets the scroll position to ...
snoop's user avatar
  • 459
0 votes
1 answer
578 views

I have this component in Vue. When I save, the server is returning the updated record. So, I don't need to hit the server with yet another request. However, this is triggering the new get: queryClient....
Merc's user avatar
  • 17.2k
1 vote
1 answer
1k views

I am trying to update a ref object that should trigger the data fetching logic written to return updated data. But this doesn't seem to be working. App.vue <script setup lang="ts"> ...
Nauman Zafar's user avatar
  • 1,103
0 votes
1 answer
203 views

I'm making app in Vue.js 2.6.14. I use vue-query to fetch data from external API. I wanted to pass an argument - this.form.style to the query function, inside setup() but it seems to does not work. ...
Adrian's user avatar
  • 96
5 votes
1 answer
3k views

I'm used to using Pinia/Vuex for dispatching axios requests and storing the data in the store, then using the getters for computational operations on the data. I'm using Vue 3. A simple example: let's ...
anab1's user avatar
  • 63
1 vote
0 answers
327 views

Please suggest if possible in some way. I have tried to change the import path from react-query to vue-query after typescript-react-query has done with it. But I didn't able to make it work (actually ...
Aditya Yaduvanshi's user avatar
1 vote
4 answers
3k views

import { useQuery } from "vue-query"; const { isLoading, data /* read only */, error, isError, refetch } = useQuery("todo", todo) I just found out data returned by vue-query is ...
Nicolas S.Xu's user avatar
  • 14.6k