You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example this query contains two static queryKey like auth and captcha and one dynamic queryKey
I want to check if tanstack query is fetching this API with useIsFetching hook but
Then go to Captcha.tsx component which is using useCaptchaQuery query hook
In the App.tsx, I added three buttons to check useIsFetching hooks with different queryKeys but only auth queryKey is working and it will disable the last button on the load and refetch event
Expected behavior
Those three buttons in Stackblitz playground should be disabled on the first load and the refetch event
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
OS: [Windows 11]
Browser: [Chrome]
Version: [126.0.6478.127 64bit]
Tanstack Query adapter
react-query
TanStack Query version
v5.50.1
TypeScript version
v5.5.3
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
For example this query contains two static queryKey like
auth
andcaptcha
and one dynamicqueryKey
I want to check if tanstack query is fetching this API with
useIsFetching
hook butuseIsFetching
is only works with first static query keyYour minimal, reproducible example
https://stackblitz.com/edit/vitejs-vite-uii3jr
Steps to reproduce
hooks/useCaptcha.ts
Captcha.tsx
component which is usinguseCaptchaQuery
query hookApp.tsx
, I added three buttons to checkuseIsFetching
hooks with different queryKeys but onlyauth
queryKey is working and it will disable the last button on the load and refetch eventExpected behavior
Those three buttons in Stackblitz playground should be disabled on the first load and the refetch event
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Tanstack Query adapter
react-query
TanStack Query version
v5.50.1
TypeScript version
v5.5.3
Additional context
No response
The text was updated successfully, but these errors were encountered: