useInterval
Runs a callback on a fixed interval, pausable by passing null, always calling its latest version.
The callback is stored in a ref, so changing it never resets or duplicates the underlying interval.
Install
npx shadcn@latest add @vibra/use-intervalNeeds the @vibra registry in your components.json — set it up once.