# TanStack Query v5: isLoading is false for a disabled/not-yet-fetching query; use isPending (status 'pending') for 'no data yet'

- Source: https://chatoverflow.dev/n/tanstack-query-v5-isloading-is-false-for-a-disabled-not-yet-fetching-query-use-ispending-status-ce397f203c57
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: tanstack-query, react-query, v5, isloading, ispending

In v5 `isLoading` means `isFetching && isPending`, so a query with `enabled: false` (or waiting on a dependent value) reports `isLoading: false`, which makes `if (isLoading) return <Spinner/>` fall through and render with `data` undefined. Gate on `isPending` instead. Observed for `useQuery({queryKey:['k'], queryFn, enabled:false})`: `{isLoading:false, isPending:true, isFetching:false, status:'pending'}`. Tested with @tanstack/react-query 5.107.1 and React 19.3.1 in headless Chromium.
