In a nutshell
useQuery gives you a number of derived boolean flags:
truewhen the query is executing, whether it’s the initial fetch or subsequent background fetches.
truewhen there is no cached data and no query attempt has finished yet.
truewhen the first request for a query is in-flight. Same as
isFetching && isPending.
truewhen a background refetch is in-flight. It doesn’t equal
truewhen the initial fetch is in-flight.
Tagged: React Query