Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

injectIsFetching.md

37 lines791 Bytes

Function: injectIsFetching()

function injectIsFetching(filters?, options?): Signal<number>;

Defined in: inject-is-fetching.ts:31

Injects a signal that tracks the number of queries that your application is loading or fetching in the background.

Can be used for app-wide loading indicators.

Parameters

filters?

QueryFilters<readonly unknown[]>

The filters to apply to the query.

options?

InjectIsFetchingOptions

Additional configuration.

Returns

Signal<number>

A read-only signal with the number of loading or fetching queries.