Skip to main content
Version: 5.0

useMeta()

function useMeta(
endpoint: Endpoint,
params: object | 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