We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d9e73e commit 2f3fe5cCopy full SHA for 2f3fe5c
packages/nuqs/src/cache.ts
@@ -1,4 +1,3 @@
1
-// @ts-expect-error (not exported in types for React 19 beta, but available in Next.js)
2
import { cache } from 'react'
3
import { error } from './errors'
4
import type { ParserBuilder } from './parsers'
@@ -30,7 +29,7 @@ export function createSearchParamsCache<
30
29
// whereas a simple object would be bound to the lifecycle of the process,
31
// which may be reused between requests in a serverless environment
32
// (warm lambdas on Vercel or AWS).
33
- const getCache: () => Cache = cache<() => Cache>(() => ({
+ const getCache = cache<() => Cache>(() => ({
34
searchParams: {}
35
}))
36
function parse(searchParams: SearchParams) {
0 commit comments