Skip to content

Commit 64bfe82

Browse files
committed
fix: Import from next/navigation.js
So that the agonostic adapter is happy about the import when bundled under the pages router. Closes #869.
1 parent 407141e commit 64bfe82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuqs/src/adapters/next/impl.app.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useRouter, useSearchParams } from 'next/navigation'
1+
import { useRouter, useSearchParams } from 'next/navigation.js'
22
import { startTransition, useCallback, useOptimistic } from 'react'
33
import { debug } from '../../debug'
44
import { renderQueryString } from '../../url-encoding'

0 commit comments

Comments
 (0)