Custom hook to access the rate limit context.
The current rate limit context value.
If used outside of a RateLimitProvider.
export function useRateLimit() { const context = useContext(RateLimitContext); if (context === undefined) { throw new Error("useRateLimit must be used within a RateLimitProvider"); } return context;} Copy
export function useRateLimit() { const context = useContext(RateLimitContext); if (context === undefined) { throw new Error("useRateLimit must be used within a RateLimitProvider"); } return context;}
Custom hook to access the rate limit context.