Skip to main content
Version: 6.5

useMeta()

function useMeta(
endpoint: Endpoint,
...args: Parameters<typeof endpoint> | [null]
): {
readonly date: number;
readonly error?: NetworkError | UnknownError;
readonly expiresAt: number;
readonly prevExpiresAt?: number | undefined;
readonly invalidated?: boolean | undefined;
} | null;

NetworkError UnknownError

Retrieves metadata about a request from the cache.

Used in