UseFetchOptions
Type Alias: UseFetchOptions<T>
Section titled “Type Alias: UseFetchOptions<T>”UseFetchOptions<
T> =RequestOptions<T> &object
Defined in: packages/fetch-kit/src/react/use-fetch.ts:17
Options for useFetch.
Type Declaration
Section titled “Type Declaration”
optionaldeps?:ReadonlyArray<unknown>
Dependencies that, when changed, trigger a refetch.
enabled?
Section titled “enabled?”
optionalenabled?:boolean
When false, the request will not run automatically. Defaults to true.
Type Parameters
Section titled “Type Parameters”T