react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
š£-announcements
reusing useQuery
Provider in Server Component?
Wrong data type when use with Query Key Factory
queryFn already, which's returning a promise of array, but when I try to get data (query.data) it's giving me an object, so my linter is complaining about it.
...Can I use custom QueryCache with react-query?
Updating mutation data from another mutation
useMutation to fetch text generations which are not stored in a database.
The main reason we can't use useQuery is that we can't allow requests to fire unintentionally. We tried using it, but had to turn off refetch and retry, set cacheTime and staleTime to 0 and set enable: false but there could still be a chance that a dependency is updated and another request is triggered which is bad for us. All the requests are triggered by user interactions.
...How to get mutationKey in onError?
[V3] createAsyncStoragePersistor with local forage or idb-keyval
Any way to use react-query without use 'use client' in layout.tsx in nestjs
Custom hook to handle multiple queries/mutation combined by domain e.g. useCart
useCart. I thought that this would be a good idea as it will basically help me have a shared isLoading state amongst other things for the cart itself and all mutations related to it.
I still dont know if its a good idea to approach it like this, but the problem that I have encountered is that isLoading isnt really working.
```ts
export const useCartRq = () => {...
Chatbot with React Query - does it make sense?
Multiple mutations, one notification
onlineManager (cannot detect going offline when I mock in DevTools)
{ online: true }, no matter what happens and cannot detect going offline when I mock in DevTools. I'm using "@tanstack/react-query": "^4.29.7" version. I attached an image when I tried to mock the devtools into offline. What did I miss here? Thanks.
```ts
Ā const [isOnline, setIsOnline] = useState(onlineManager.isOnline())
Ā useEffect(...
How do I write out my cached data locally and update it every 30 days from the server via fetch ...
Query invalidation -- how to invalidate [x, y, z]
queryKey [x,y,z] and I want to invalidate y such that [x,y,z] gets invalidated. Will queryClient.invalidateQueries([y]) do this? What will?Does Date objects in keys are treated as equal if they have different references but the same time?
Tests failing when using react-query-devtools
ReactQueryDevtools in the provider.
As I checked the dependency, the error (see attached ss) I am getting on this package is-what is from react-query-devtools package
```...
react query cached and not up to date
v5: Other Helpers e.g queryOptions
React Native tests fail: `require(...).unstable_batchedUpdates` is not a function
``
ReferenceError: You are trying to import` a file after the Jest environment has been torn down. From ...
at unstable_batchedUpdates (node_modules/react-native/Libraries/ReactNative/RendererImplementation.js:44:10)
at batchNotifyFn (node_modules/@tanstack/query-core/src/notifyManager.ts:61:9)...