datadog-ux-utils Documentation - v1.0.0
    Preparing search index...

    Type Alias UseGuardedFetchOptions

    type UseGuardedFetchOptions = {
        onBlocked?: (
            info: {
                key: string;
                until: number;
                windowMs: number;
                maxRequests: number;
            },
        ) => void;
        retryAfter?: "wait"
        | "none";
        cancelSignal?: AbortSignal;
    }
    Index

    Properties

    onBlocked?: (
        info: {
            key: string;
            until: number;
            windowMs: number;
            maxRequests: number;
        },
    ) => void
    retryAfter?: "wait" | "none"

    If 'wait', automatically retry once after the block window ends. If 'none', do not retry. Default: 'none'

    cancelSignal?: AbortSignal

    Optional signal to cancel the auto-retry wait (e.g., route change)