--- category: Watch alias: throttledWatch --- # watchThrottled Throttled watch. ## Usage Similar to `watch`, but offering an extra option `throttle` which will be applied to the callback function. ```ts import { watchThrottled } from '@vueuse/core' watchThrottled( source, () => { console.log('changed!') }, { throttle: 500 }, ) ``` It's essentially a shorthand for the following code: ```ts import { throttleFilter, watchWithFilter } from '@vueuse/core' watchWithFilter( source, () => { console.log('changed!') }, { eventFilter: throttleFilter(500), }, ) ``` ## Type Declarations ```ts export interface WatchThrottledOptions extends WatchOptions { throttle?: MaybeRefOrGetter trailing?: boolean leading?: boolean } export declare function watchThrottled< T extends Readonly, Immediate extends Readonly = false, >( sources: [...T], cb: WatchCallback, MapOldSources>, options?: WatchThrottledOptions, ): WatchHandle export declare function watchThrottled< T, Immediate extends Readonly = false, >( source: WatchSource, cb: WatchCallback, options?: WatchThrottledOptions, ): WatchHandle export declare function watchThrottled< T extends object, Immediate extends Readonly = false, >( source: T, cb: WatchCallback, options?: WatchThrottledOptions, ): WatchHandle /** @deprecated use `watchThrottled` instead */ export declare const throttledWatch: typeof watchThrottled ```