12 questions
1
vote
0
answers
38
views
Getting back same point after link at infinite scrolling?
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 ...
0
votes
0
answers
198
views
Pinia Colada not refetching on reactive query key change
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 (...
0
votes
1
answer
62
views
Vue components keep the old state even when replaced
const queryKey = ref("userData");
const { data, isLoading, error } = useQuery({
queryKey: [queryKey], // Chave única para identificar a consulta
queryFn: async () => {
...
0
votes
0
answers
60
views
Tanstack vue query dont apply after updated
I use vue and @tanstack/vue-query. it is my code:
<a-select
v-model="selectedPersonId"
@search="handleSearch"
@change="selectPerson"
show-search
...
1
vote
0
answers
766
views
Tanstack query refetch interval dynamic change
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 ...
0
votes
1
answer
3k
views
PrimeVue DataTable Virtual Scroller Resetting Scroll position on data change
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 ...
0
votes
1
answer
578
views
Prevent reload straight after saving using vue-query and invalidateQueries()
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....
1
vote
1
answer
1k
views
Updating Ref not Triggering Composable Recomputation
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">
...
0
votes
1
answer
203
views
is there any way to access property from data() inside setup()?
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. ...
5
votes
1
answer
3k
views
How to use computed properties with tanstack's vue-query?
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 ...
1
vote
0
answers
327
views
How to use @tanstack/vue-query with graphql codegen in ts? Because there is no typescript-vue-query plugin similar to typescript-react-query for vue
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 ...
1
vote
4
answers
3k
views
Vue-query returned data is read only. How to make it mutable?
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 ...