nuqs icon indicating copy to clipboard operation
nuqs copied to clipboard

Support for Next App Router (version 13.4)

Open andreisocaciu opened this issue 3 years ago • 3 comments

Hi,

I use this library in my own projects and I was curious if there are any plans to add support for the new app directory that is now stable in Next 13.4.

The main issue is that the useRouter from 'next/router' is no longer supported in the app directory and it makes using this library impossible. It is being replaced by the useRouter from 'next/navigation', together with usePathname and useSearchParams.

andreisocaciu avatar May 12 '23 12:05 andreisocaciu

Eventually, yes, though I suppose this will require a major version bump because of the breaking changes you mention, or some sort of dual export to target either the pages or app routers.

That being said, with Next.js becoming more and more of a server-first framework, I expect a lot of hurdles along the way.

If you'd like to open a PR, I will gladly review it.

franky47 avatar May 12 '23 12:05 franky47

:tada: This issue has been resolved in version 1.8.0-beta.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Aug 30 '23 14:08 github-actions[bot]

:tada: This issue has been resolved in version 1.8.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Sep 15 '23 13:09 github-actions[bot]