sajad torkamani

isLoading or `status === ‘loading’`

Is true when the query has no data yet and is fetching for the first time.

isFetching

Is true whenever a request is in-flight – includes the initial request and subsequent refetches.

isRefetching

Is true whenever a request is in-flight, but doesn’t include the initial request. Equivalent to isFetching && !isLoading.

Sources

Leave a comment

Your email address will not be published. Required fields are marked *