UseFetchDataResult
Type alias | Source Code
A tuple containing, in order:
- Whether the
fetcheris pending. - The data returned from
fetcher, orundefinedif it hasn’t run yet, or an error occurred during the initial invocation offetcher. - The latest error that occurred while trying to call
fetcher, if any.
UseFetchDataResult: [boolean, T | undefined, Error | undefined]