diff --git a/packages/next-usequerystate/src/update-queue.ts b/packages/next-usequerystate/src/update-queue.ts index f53526c8..221ac96f 100644 --- a/packages/next-usequerystate/src/update-queue.ts +++ b/packages/next-usequerystate/src/update-queue.ts @@ -9,7 +9,7 @@ export const FLUSH_RATE_LIMIT_MS = getDefaultThrottle() type UpdateMap = Map const updateQueue: UpdateMap = new Map() -const queueOptions: Required, 'startTransition'>> = { +const queueOptions: Required> = { history: 'replace', scroll: false, shallow: true, @@ -24,7 +24,7 @@ export function enqueueQueryStringUpdate( key: string, value: Value | null, serialize: (value: Value) => string, - options: Options + options: Options ) { const serializedOrNull = value === null ? null : serialize(value) debug('[nuqs queue] Enqueueing %s=%s %O', key, serializedOrNull, options)