We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
throttleMs
1 parent 7b0dd2c commit 8139e96Copy full SHA for 8139e96
packages/nuqs/src/defs.ts
@@ -41,7 +41,14 @@ export type Options = {
41
*
42
* Note: the value will be limited to a minimum of 50ms, anything lower
43
* will not have any effect.
44
- * @deprecated use limitUrlUpdates: { 'method': 'throttle', timeMs: number }
+ *
45
+ * @deprecated use `limitUrlUpdates: { 'method': 'throttle', timeMs: number }`
46
+ * or use the shorthand:
47
+ * ```ts
48
+ * import { throttle } from 'nuqs'
49
50
+ * limitUrlUpdates: throttle(100) // time in ms
51
+ * ```
52
*/
53
throttleMs?: number
54
0 commit comments