Skip to content

tick() in rateLimitStore is never called — the countdown never decrements #355

Description

@therealjhay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions