The shape of the rate limit context value provided to consumers.
interface RateLimitContextType { rateLimitState: RateLimitState; setRateLimit: ( isLimited: boolean, retryTime?: number, message?: string, ) => void; clearRateLimit: () => void;} Copy
interface RateLimitContextType { rateLimitState: RateLimitState; setRateLimit: ( isLimited: boolean, retryTime?: number, message?: string, ) => void; clearRateLimit: () => void;}
The current rate limit state.
Function to set the rate limit state.
Function to clear the rate limit state.
The shape of the rate limit context value provided to consumers.
Source