Saltar al contenido principal

useError()

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

function useError(
endpoint: Endpoint,
...args: Parameters<typeof endpoint> | [null]
): NetworkError | Unknown | SyntheticError | undefined;

NetworkError

Proporciona información de error sobre una petición.

Se usa en