use/proxyLoading
Type Aliases
MaybeRefWatchableLoading
MaybeRefWatchableLoading =
MaybeRefOrGetter
A watchable loading source that may itself be wrapped in a ref or getter.
Type Parameters
WatchableLoading
WatchableLoading =
LoadingProperties|Reactive
A loading source (possibly-reactive loading properties) that useProxyLoading can aggregate.
Type Parameters
Functions
asWatchableLoading()
asWatchableLoading(
source):WatchableLoading
Adapt an object with reactive loading state into a WatchableLoading shape. Accepts either an object with a state property or an object that already exposes loading.
Parameters
source
MaybeRef<WatchableLoading | { state: WatchableLoading; }>
The source object to adapt.
Returns
- The adapted WatchableLoading object.
useProxyLoading()
useProxyLoading(
loadings):LoadingProperties
A composable function for aggregating loading state across multiple sources.
Parameters
loadings
MaybeRefOrGetter<MaybeRefOrGetter<WatchableLoading>[]>
The loading states to monitor.
Returns
An object containing the aggregated loading field.
References
ReadonlyLoadingStatus
Renames and re-exports LoadingProperties