File: lib/store/rateLimitStore.ts
The tick() function exists but is never invoked by any component. Create a useRateLimitCountdown hook that calls tick() every second using setInterval when rateLimitedUntil > 0. The hook should clean up the interval on unmount. This ensures the secondsRemaining in the store decrements in real time.
Labels: bug
File:
lib/store/rateLimitStore.tsThe
tick()function exists but is never invoked by any component. Create auseRateLimitCountdownhook that callstick()every second usingsetIntervalwhenrateLimitedUntil > 0. The hook should clean up the interval on unmount. This ensures thesecondsRemainingin the store decrements in real time.Labels: bug