Z
Zyeon UI

useRaf · Zyeon UI

A requestAnimationFrame loop hook that hands every frame a delta/elapsed payload, with start/stop controls, an fps cap and automatic hidden-tab suspension.

npx shadcn@latest add @zyeon/use-raf
Preview useRaf on Zyeon UI's site (opens in a new tab)

Not checked yet

Zyeon UI limits how often it can be asked, and useRaf hasn't had its turn. Its source will show here once it has.