--- id: background-fetching-indicators title: Background Fetching Indicators --- A query's `status === 'pending'` state is sufficient enough to show the initial hard-loading state for a query, but sometimes you may want to display an additional indicator that a query is refetching in the background. To do this, queries also supply you with an `isFetching` boolean that you can use to show that it's in a fetching state, regardless of the state of the `status` variable: [//]: # 'Example' ```tsx function Todos() { const { status, data: todos, error, isFetching, } = useQuery({ queryKey: ['todos'], queryFn: fetchTodos, }) return status === 'pending' ? ( Loading... ) : status === 'error' ? ( Error: {error.message} ) : ( <> {isFetching ?