Skip to content

Commit 2f3fe5c

Browse files
committed
chore: Un-ignoring cache import
1 parent 6d9e73e commit 2f3fe5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/nuqs/src/cache.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-expect-error (not exported in types for React 19 beta, but available in Next.js)
21
import { cache } from 'react'
32
import { error } from './errors'
43
import type { ParserBuilder } from './parsers'
@@ -30,7 +29,7 @@ export function createSearchParamsCache<
3029
// whereas a simple object would be bound to the lifecycle of the process,
3130
// which may be reused between requests in a serverless environment
3231
// (warm lambdas on Vercel or AWS).
33-
const getCache: () => Cache = cache<() => Cache>(() => ({
32+
const getCache = cache<() => Cache>(() => ({
3433
searchParams: {}
3534
}))
3635
function parse(searchParams: SearchParams) {

0 commit comments

Comments
 (0)