Skip to content

Am I using nuqs with nextjs wrong? #778

Answered by J4v4Scr1pt
J4v4Scr1pt asked this question in Q&A
Discussion options

You must be logged in to vote

We can close this.

I found the issue it has nothing to do with neither Tanstack or nuqs... just my stupid *ss.. 😭.

In the docs for NextJs it does not say anything about you cant use ServerActions to fetch data. Even some youtubers have suggested doing this.

But I know better now, after I converted all my GET serverActions to be route-handlers all is good.

Thanks again for all your awesome responses!

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@J4v4Scr1pt
Comment options

@franky47
Comment options

@J4v4Scr1pt
Comment options

@J4v4Scr1pt
Comment options

Answer selected by J4v4Scr1pt
@franky47
Comment options

@J4v4Scr1pt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants