Skip to content

UseFetchDataResult

Type alias | Source Code

A tuple containing, in order:

  1. Whether the fetcher is pending.
  2. The data returned from fetcher, or undefined if it hasn’t run yet, or an error occurred during the initial invocation of fetcher.
  3. The latest error that occurred while trying to call fetcher, if any.

UseFetchDataResult: [boolean, T | undefined, Error | undefined]