Skip to content

vue-qs v0.2.8


vue-qs / throttle

Function: throttle() ​

throttle(timeMs): LimitUrlUpdates

Defined in: options.ts:56

Emits URL updates at most once every timeMs milliseconds. State updates stay instant; only URL writes are rate-limited.

Parameters ​

timeMs ​

number

Returns ​

LimitUrlUpdates

Example ​

ts
const q = useQueryState('q', parseAsString.withOptions({ limitUrlUpdates: throttle(300) }))

Released under the MIT License. Questions or ideas? Join the GitHub Discussions.