Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
21 views

I have a React Native app using Expo Router and React Query. I fetch a list of items using useQuery and display them in a FlatList. I also have a mutation using useMutation to add a new item. In ...
amal ouerfelli's user avatar
0 votes
2 answers
97 views

I have been using react query and next.js , I need to know how can achieve server side rendering using react query, I can achieve with this using normal fetch or axios in the server side components, ...
arjun tv's user avatar
0 votes
1 answer
92 views

I am developping an iOs/Android App with React Narive. I am using useQuery (TanStack Query v5) to send the username and an hashed password to my database and it return the user ID if the email/...
popof's user avatar
  • 11
0 votes
1 answer
170 views

I see that Tanstack Query supports parallel queries in a certain way that is dynamic, per this page: https://tanstack.com/query/latest/docs/framework/react/guides/parallel-queries#:~:text=each%...
Byofuel's user avatar
  • 448
0 votes
0 answers
73 views

I am working on a react native app that is using openapi-react-query in order to enforce the type safety across backend and mobile, my struggle is how to refetch queries (in a component other than the ...
Hamza Hmem's user avatar
0 votes
1 answer
139 views

Really need some help understanding the nuances and effects of how refetchInterval, and queryKeys interact with each other. Currently, I have a UI that is stuck on loading state. I suspect it is ...
samplecode3300's user avatar
0 votes
2 answers
52 views

I am using tanstack-query and have dependent queries to do: const { resourceId } = useGetResourceId(); // resourceId: number | null const { data, loading, error } = useGetResourceData(resourceId); ...
zmii's user avatar
  • 4,339
0 votes
1 answer
79 views

In my react-native project, I use tanstack react-query: https://tanstack.com/query/latest/docs/framework/solid/reference/useQuery#isrefetching-boolean Why is isRefetching executed if I don't call ...
IncognitoUser's user avatar
0 votes
2 answers
129 views

I have a client component that fetches the list of project and a dialog box that creates a project but I cant update the project list unless I have to do a manual refresh on the browser. The flow is: ...
aRtoo's user avatar
  • 1,874
4 votes
0 answers
266 views

Recently I read about new hook useSuspenseQuery provided in @tanstack/react-query v5. Previously I have used useQuery and have written unit tests on it. I am trying to write unit tests on ...
Dhananjay Sakhare's user avatar
0 votes
0 answers
43 views

I have two media hide and unhide, I am using optimistic update approach from react query It works smoothly, the setup of my react is list of checkbox, 1 list for hidden and 1 list for non-hidden items....
Jerome's user avatar
  • 23
1 vote
0 answers
21 views

I'm building a multi-step order form using React, react-hook-form, and react-query. Initially, there are three visible steps: customer information, product selection, and order summary. Depending on ...
Thore's user avatar
  • 1,928
0 votes
0 answers
23 views

I have a mutation where I append a comment to the first page (pages[0]). In my onMutate, I cancel any ongoing refetches (if we're not fetching a subsequent page) and then refetch in onSettled Mutation:...
Max adam's user avatar
  • 105
0 votes
0 answers
45 views

I have a Next.js application (main-app) that imports and uses UI components (widgets) and API hooks from a separate repository (abc-widgets). These widgets internally use API hooks that rely on ...
Deepak Nohawar's user avatar
1 vote
1 answer
103 views

I'm using useQuery function from React Query to fetch data in my React application. However, I'm encountering an issue where some requests take too long to download content (about a minute). Here's a ...
SeuZeRicardo's user avatar
0 votes
1 answer
212 views

A lot of people are saying that use React Query for efficient data retrieval. But to use useQuery hook I have to make every component "client component" then what would be the purpose of SSR ...
Yaseen Jabir's user avatar
1 vote
0 answers
110 views

While migrating from the client-side row model to the infinite row model, my team and I are attempting to preserve the functionality of our custom Refresh/Cancel button. In the client-side row model, ...
Supernectar's user avatar
0 votes
1 answer
294 views

I have 2 instances of storybook running an application locally. I have 2 tabs open on localhost:6006 and localhost:6007, and I log in as a different user on each. I do things in 1 tab that ...
Aaron Parisi's user avatar
3 votes
2 answers
778 views

I have a Project type in my app. I need to be able to access it via two separate async function: getProductBySlug getProductById At the root of the page I use the URL to derive the slug and query ...
Undistraction's user avatar
0 votes
1 answer
459 views

I want to use useSuspenseQuery along with next js so that I can take advantage of the built-in React feature. But when using useSuspenseQuery, it gives an error img query const { data, isLoading } = ...
И И's user avatar
  • 1
0 votes
2 answers
88 views

I have an app with cards. Cards are fetched with useInfiniteQuery from React Query. I fetch new card each time I reach the end of the list. Backend sends offset and limit based responses of this ...
magrega's user avatar
  • 263
0 votes
1 answer
652 views

Can I use TanStack Query with the below code example as a replacement of client-side state managers such as Zustand or Redux and therefore, have only one single state manager across the application? ...
Reza Alizade's user avatar
0 votes
1 answer
69 views

I have search form, and i only want to call the api when selectedPage or resultsPerPage change or when user click on search after write some things in the form. With this, the api is called when the ...
Jorge Montejo's user avatar
1 vote
1 answer
99 views

I use optimistic updates for the UI and it works, but the data is not re-fetched. In the server terminal I see only a DELETE request. There should be a GET right after it queryClient.js import { ...
Georgios 's user avatar
1 vote
1 answer
223 views

I have a React project where I am using React Query and TanStack Table. Occasionally, my component enters an infinite re-render loop, and I can't figure out why. Sometimes it works perfectly fine, and ...
Berkay Çelikkol's user avatar

1
2 3 4 5
38