Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
32 views

Tanstack-Query Caching Not Working When Calling fefetch

I'm using @tanstack/react-query in my React Native (Expo) & Firebase project. I have set everything necessary (such as QueryClientProvider). For an unknown reason chrome networking tab doesn't ...
Vusal Huseynov's user avatar
0 votes
0 answers
103 views

Getting the error " Should have a queue" when using React-Query mutation

I'm trying to figured out how to implement react-query in my react-native app. I'm executing a simple firebase login function from react-query mutation. Then in my signIn component I will call the ...
scholarwithfire's user avatar
2 votes
1 answer
147 views

React Native refresh control icon flickering

I am using a refreshControl component in SectionList, it works as expected pre-build and on iOS, however on Android phones sometimes the refresh icon appears and flickers continuously without ...
AidasV's user avatar
  • 55
0 votes
0 answers
113 views

Using react query differently in online and offline mode

I'm using react query in my react native app with the following configuration : Stale Time = 3 minutes Cache Time = 5 minutes But the problem is that i need to get data from cache if there is no ...
Zero0's user avatar
  • 497
1 vote
1 answer
833 views

Access React Query / Tan Stack Query cached data from outside the react tree?

I am working on an error handler for the whole mobile app. So when an unexpected error occurs, it sends user data to server. I used to have a global state, so getting user infos from there was easy, ...
TOPKAT's user avatar
  • 8,069
0 votes
0 answers
29 views

react native with tenstack, when submitting the mutatuion function nothing happe?

im trying to submit a form but nothing happen the button is changed to chargement state because of the isLoading = true, but nothing happend after that . the server is working fine i have test it with ...
Boughazi Akram's user avatar
1 vote
0 answers
305 views

Custom Field in React Query Builder

I am playing with an example taken from the docs and trying to create a custom field which shows an additional textbox and adds it to the built query. import { useState } from 'react'; import type { ...
Mustafa Orkun Acar's user avatar
2 votes
3 answers
545 views

React Query refetching in react native with useFocusEffect hook

I don't want to refetch the query because if the data is not stale it's still refetching it with refetch() function. And also if I add condition like isStale == true then it will refetch but even if I ...
Usama Maqsood's user avatar
0 votes
0 answers
69 views

React Query CacheTime ignored in React Native

I am trying to prefetch some data on the home screen to display on a different screen (search screen) when the user goes there. I'm trying to set the cacheTime to be 24 hours, so it will basically ...
Marc Fletcher's user avatar
0 votes
1 answer
684 views

Tanstack react query useInfiniteQuery data is not updated client data, the server returns the updated data

I have a problem using react query with my trpc api. I am using an infiniteQuery, the staletime is 0, when I come on the screen the query is fetching and the server returns the updated data but in ...
Pakenfit's user avatar
  • 180
0 votes
1 answer
246 views

Dependent mutation React Query

I'm using React Query to make requests in a React Native mobile application. I want to register a user when the login request returns a 404 error. I've done this as follows using a recursive ...
Brice Zele's user avatar
0 votes
0 answers
35 views

React Query React Native

"I'm relatively new to React Native and currently working with React Query. I've noticed that when I attempt to navigate to another page, there's a noticeable delay specifically related to the ...
Dammy moses's user avatar
4 votes
0 answers
2k views

RangeError: Property storage exceeds 196607 properties While fetching file buffer from server

I am creating an app for file storage 

 When a user uploads the file it is stored in the MongoDB in buffer format

 When a user requests the file the same buffer is sent into the response to the user ...
Shail Patel's user avatar
1 vote
1 answer
145 views

FlatList sometimes does not rerender on data change

I am using react-query for data fetching in React Native. I have a Notifications screen. In this screen there are two queries useGrocerNotifications -> returns last 10 notifications ...
AuroPick's user avatar
0 votes
1 answer
498 views

TanstackQuery - Query not executed

I have these two custom hooks to execute queries. When the two functions have the same query keys, the second function is blocked and will not be executed. When I remove the userId both queries will ...
Jonas's user avatar
  • 15

15 30 50 per page
1
2 3 4 5
7