some of the copy from vueuse
- 🎪 Interactive docs & demos
- ⚡ Fully tree shakeable: Only take what you want, bundle size
- 🦾 Type Strong: Written in TypeScript, with TS Docs
- 🔋 SSR Friendly
import { useThrottle } from 'comuse-core'
const throttledFn = useThrottle(() => {
// do something, it will be called at most 1 time per second
}, 1000)
window.addEventListener('resize', throttledFn)Refer to functions list or documentations for more details.
npm i comuseSee the Contributing Guide
MIT License © 2024-PRESENT Ajiu9