Hiyve Components - v1.0.0
    Preparing search index...

    Function useReactionThrottle

    • Manages cooldown state for reaction triggers.

      Prevents rapid-fire reaction spam by enforcing a configurable cooldown period between triggers. Exposes countdown state for UI feedback (e.g., progress indicator on the trigger button).

      Parameters

      • cooldownMs: number = TIMING.DEFAULT_COOLDOWN_MS

      Returns { cooldownRemaining: number; isCoolingDown: boolean; startCooldown: () => void }