Skip to main content
Version: 4.5

useError()

export interface SyntheticError extends Error {
status: number;
response?: undefined;
synthetic: true;
}

function useError(
endpoint: Endpoint,
params: object | null,
): NetworkError | Unknown | SyntheticError | undefined;

NetworkError

Provides error information about a request. This builds on useMeta(), but adds some additional logic.

Used in