Open History to see the last commit
Function: injectIsFetching()#
function injectIsFetching(filters?, options?): Signal<number>
Defined in: inject-is-fetching.ts:32
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?#
Additional configuration
Returns#
Signal<number>
signal with number of loading or fetching queries.