-
If I wanted to write isomorphic code (working on both server and client) should I import |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Yes, you can import the parsers from |
Beta Was this translation helpful? Give feedback.
-
Note: nuqs@2.4.1 shipped with a fix for this in #923. It allows importing from Note that you would only need to import from For all other cases, importing from |
Beta Was this translation helpful? Give feedback.
Note: nuqs@2.4.1 shipped with a fix for this in #923. It allows importing from
nuqs/server
without getting the "Cannot find exportcache
from React" error.Note that you would only need to import from
nuqs/server
in Next.js when using the app router, in code that can be shared between server and client.For all other cases, importing from
nuqs
is fine (other frameworks don't care about the "use client" directive).