TanStackT
TanStack3y ago
9 replies
awake-maroon

isLoading with initalData

I tried to get ‘isLoading’ and ’status’ from useQuery hook and always I got false on isLoading and the status - “success” although it’s was first fetch.
After some checks I found that because i define ‘initalData’ on querycllient cause to this problem.
How I can set initial data to all queries and also get the isLoading status?
Was this page helpful?