Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
0 answers
31 views

I've been struggling to find the best practice to implement oRPC with Next.js, and I also want to integrate with Tanstack Query
user23936040's user avatar
-1 votes
0 answers
99 views

I am new to everything here, I need help if this will load fast. The Problem: When i am using normal API Calls, it takes a while to update the UI of the changes. I’m currently working implementing ...
Jetro's user avatar
  • 1
-1 votes
1 answer
562 views

I am currently exploring TanStack Start (with React). At What are Server Functions? page we have example of server function that can be used with useQuery (from TanStack Query, to fetch data from ...
Michał Turczyn's user avatar
0 votes
0 answers
32 views

I have an issue where I need to make 3 chained POST calls using Tanstack Query. POST with query 1 If query 1 fails, stop If query 1 succeeds, make POST query 2 If query 2 fails, rollback query 1 If ...
Jeff Barnes's user avatar
0 votes
1 answer
107 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
  • 3
0 votes
0 answers
45 views

We're in an awkward situation needing to consume an API endpoint that is not built correctly. It returns pages of (unsortable) records without revealing beforehand how many pages there are in total. ...
Byofuel's user avatar
  • 448
0 votes
1 answer
200 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
-1 votes
2 answers
127 views

Context I’m using React Hook Form together with React Query. The parent component fetches data with a query, derives defaultValues, and passes them into the form. Parent component: export const ...
Andrey Rafalskyi's user avatar
0 votes
0 answers
20 views

Problem After uploading new trade files through an "Upload New File" dialog, the trade reconciliation table shows stale data from the previous upload instead of the updated data. The table ...
J_Max's user avatar
  • 35
0 votes
1 answer
90 views

I’m building a react native app using expo and I created a component called FlightList.tsx that fetches flight data using a custom hook useFlightList.tsx (which internally uses React Query’s useQuery)....
Mohamed Amine Bejaoui's user avatar
2 votes
0 answers
71 views

We are using TanStack query (Vue) for storing a lot of states in the local storage. But what happens if the local storage is full? Will it just discard the oldest query if we store a new query?
Fakerhardcore's user avatar
0 votes
0 answers
117 views

I am creating a dating app's swiping page in React using TanStack Query. When swiping on the last user in a batch of profiles received from the database, the user has to wait for the next batch to be ...
Alan's user avatar
  • 11
0 votes
1 answer
162 views

I have an authentication system. calling Api's using tanstack query. When logging in, signing up, and verifying email using the link, everything works fine. However, when I check the mutation's ...
Huzaifa Ahmed's user avatar
0 votes
1 answer
155 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
0 answers
222 views

I am new to React and TanStack and i try to write a React SPA (TypeScript) which shows up a data table after a successful login. The project uses TanStack Query V5, axios for data fetching and React ...
Transporter08's user avatar
2 votes
1 answer
90 views

I am trying to create a sort of complex react/jotai game with a next.js frontend server router connected to an express/node.js backend server. I keep getting circular dependency issues. I tried using ...
OkayGift's user avatar
0 votes
0 answers
41 views

I am using @tanstack/react-table React Table in a Next.js application. Want to show a list of columns to select from to display in the display However, the columns displayed are the column IDs ...
Anuj TBE's user avatar
  • 9,922
0 votes
1 answer
239 views

I have a query that uses placeholderData: keepPreviousData. This means the query is in a hard loading state, with no placeholder data, on initial mount. Then, when the queryKey changes, it goes into a ...
Gavin Wahl's user avatar
  • 1,322
0 votes
1 answer
81 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
0 answers
80 views

I have several requests to add and change data: const updateRwStationsQuery = (id: string, data: RwStationDto) => { return apiInstance<RwStationDto>(`/rwstations/${id}`, { method:...
Александр Кос's user avatar
0 votes
0 answers
32 views

Current Situtaion Part of my ReactJS app has a social section where users can post messages and reply to other messages. I have an API call that returns a list of posts, each post contains an id, ...
FriedBrain's user avatar
0 votes
0 answers
245 views

How to Properly Hydrate a TanStack Router + Vite SSR App Without Using TanStack Start? I'm trying to implement server-side rendering (SSR) in a TanStack Router + Vite React project without using ...
Mikołaj Paterek's user avatar
1 vote
1 answer
112 views

I use an infinite list for which I prefetch data on the app startup. Everything works great except for when I hit 404 error if, for example, I manually change the url to a wrong one. Then the whole ...
magrega's user avatar
  • 263
0 votes
2 answers
148 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
0 votes
1 answer
75 views

React Query not updating my list on first render My list is not updating when i come back after updating my list , but my api is returning updated data export default function App() { const [id] = ...
razer's user avatar
  • 136
0 votes
1 answer
129 views

I am having a dumb moment. I use Tanstack Query and Ky in my app to make requests and inject jwt tokens in them. Every time a request hits a 403 error, the request gets resent after acquiring a new ...
magrega's user avatar
  • 263
4 votes
0 answers
283 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
1 answer
123 views

I’m using React Query to manage my queries, and I have a scenario where I need to invalidate a query with specific parameters. useQuery({ queryKey: ["users", { page: 2, pageSize: 20 }], queryFn: ()...
Omkar Khatavkar's user avatar
0 votes
0 answers
34 views

I have a React app with a profile outlet route, where the index is the 'products'. I also have a similar route called 'savedProducts'. The difference is that the 'products' page lists by outletparam (...
benericsi's user avatar
0 votes
0 answers
168 views

How does createTRPCOptionsProxy work in server components? I'm creating a context that passes the hono context to createTRPCContext in order to obtain the HTTP headers, since I need to forward those ...
CraftzCode's user avatar
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
55 views

Im building an Electron App with Vite that uses Axios. It seems that Axios requires a dynamically imported package called form-data. When running my built .exe portable after Ive built it I get the ...
JSArrakis's user avatar
  • 809
0 votes
0 answers
48 views

I'm working on a React project using Tanstack Table to manage the state of the table and Tanstack query to manage the fetching of data from the server. In my query, I load every 10 emails at a time, ...
Vinicius R. Pilati's user avatar
0 votes
0 answers
49 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
0 answers
197 views

This stack overflow post talks about the when to use the mutation hook vs the useQuery hook. The gist of it was: If you're reading data: useQuery If you're creating/updating/deleting data: ...
Shakur Smith's user avatar
0 votes
1 answer
393 views

I am Vue developer for years , now I am trying to learn Reactjs and Nextjs. and I am implementing user list page that include pagination , I have some problem with that this is my code : "use ...
morteza mortezaie's user avatar
0 votes
1 answer
55 views

With my site I am using Tanstack react-query. Now caching seems to work when navigating between pages and I can confirm that by checking the network log and no extra calls are made. Now is it fair to ...
ScuffedCoder's user avatar
0 votes
0 answers
75 views

I'm using React Query (@tanstack/react-query) to fetch RDF data from an API with Axios, but when the API returns a 406 Not Acceptable response, the query remains in a loading state indefinitely ...
Javad Farokhi's user avatar
3 votes
0 answers
408 views

When using useInfiniteQuery in React Native environments (Android and iOS), the app crashes with the error: "observer.getCurrentResult is not a function (it is undefined)". This error does ...
Johanan307's user avatar
0 votes
1 answer
229 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
0 votes
0 answers
133 views

I am using v4 of useQuery to poll and re-poll an endpoint until the correct data is fetched, or until a max re-poll count has been met. However, I'm not sure how I can most effectively that the ...
physicsboy's user avatar
  • 6,466
0 votes
1 answer
129 views

I'm using React with @tanstack/react-table and react-query to implement a paginated table with server-side filtering and sorting. I'm encountering an issue where selecting a date filter sometimes ...
Dev Pathak's user avatar
0 votes
1 answer
318 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
0 votes
1 answer
980 views

I have a mutation that comprises of a sequence of long-running actions: useMutation({ mutationFn: async () => { await firstTask() await secondTask() await thirdTask() }, ... }) I ...
Undistraction's user avatar
3 votes
2 answers
826 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
2 votes
1 answer
824 views

Any idea how to add tanstack react-query to laravel 11 reactjs project? The apps.jsx looks like this const appName = import.meta.env.VITE_APP_NAME || 'Laravel'; createInertiaApp({ title: (title) =...
Tom Kur's user avatar
  • 2,440
0 votes
1 answer
482 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
1 vote
1 answer
147 views

If refetchInterval is set to 10 seconds in useQuery, and a given request takes 2 seconds to complete, will the next request be initiated 10 seconds after the start of the previous request, or 10 ...
Zirnael's user avatar
  • 13
0 votes
1 answer
440 views

I'm building an Expo React Native app using Expo Navigation (Stack Navigator) and React Query. When navigating between screens (e.g., from Home to Test screen and back), I need to refetch data when ...
robo's user avatar
  • 117

1
2 3 4 5
8