With React query : Query sent twice when setStart and setSearch (useState) change simultaneously. (search and start are query params)
The problem is : if i change start and search in the same time, two queries are sent, but I just want one.
With React query : Query sent twice when setStart and setSearch (useState) change simultaneously. (search and start are query params)
The problem is : if i change start and search in the same time, two queries are sent, but I just want one.
With React query : Query sent twice when setStart and setSearch (useState) change simultaneously. (search and start are query params)
The problem is : if i change start and search in the same time, two queries are sent, but I just want one.
With React query : Query sent twice when setStart and setSearch (useState) change simultaneously. (search and start are query params)
The problem is : if i change start and search in the same time, two queries are sent, but I just want one.
With React query : Query sent twice when setStart and setSearch (useState) change simultaneously. (search and start are query params)
The problem is : if i change start and search in the same time, two queries are sent, but I just want one.
With React query : Query sent twice when setStart and setSearch (useState) change simultaneously. (search and start are query params)
The problem is : if i change start and search in the same time, two queries are sent, but I just want one.
With React query : Query sent twice when setStart and setSearch (useState) change simultaneously. (search and start are query params)
The problem is : if i change start and search in the same time, two queries are sent, but I just want one.
Tanstack query refetching even with stateTime/gcTime set to Infinity
I’m building a dictionary component, where data is fetched every time user changes a search term, however, if he then changes it to a term that has been cached previously, I don’t need it refetched, obviously data won’t be changed. I have set both stateTime and gcTime to Infinity, but every time I come back to a previously fetched term, query refetches.
React Query fetches data whenever parameters change even though enabled option is set to false
I am aware that if it was an ordinary react component or a custom hook it is supposed to return newly updated data if props change but since there is no specific details in the documentation I wanted to know if this is the main reason why data fetching ( refetchProducts) happens whenever query params change or I’m missing some configuration that could help prevent this issue.
Using React-Query Infinite Problem with scroll
im building the chat application, im using react query useInfiniteQuery for fetching the data as user scroll to the top, im haveing problem with scrolling the bar back to previous scroll height, i tried usign state for previous scroll height random useEffects, and userefs but nothing seems to help me i was lookign all guides and turitorials on internet but cant find solution for this problem, also when i scroll top to 0 (zero) then it wont fetch any data until re use scroll again so for example if fetch page 1,2,3 and it is stuck on page four