Skip to content

When to use nuqs/server? #717

Answered by franky47
FezVrasta asked this question in Q&A
Oct 28, 2024 · 2 comments · 6 replies

You must be logged in to vote

Note: nuqs@2.4.1 shipped with a fix for this in #923. It allows importing from nuqs/server without getting the "Cannot find export cache 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).

Replies: 2 comments 6 replies

You must be logged in to vote
6 replies
@franky47

@guptaashwanee

@franky47

@franky47

@guptaashwanee

You must be logged in to vote
0 replies
Answer selected by franky47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants