useStatus API
These docs are auto-generated from typings files (
*.d.ts
).
useStatus
Returns the status of a fetch given a fetch instance
If you pass in null
(or any other falsy value), you'll get UNKNOWN
back out
declare function useStatus(
fetch: FetchInstance | null,
options?: UseStatusOptions
): number;
UseStatusOptions
Name | Description | Type | Required |
---|---|---|---|
isolatedStatus | If this is present, it will only report the status for the current fetch factory (if the fetch factory is shared). | boolean | no |