Skip to content
Discussion options

You must be logged in to vote

Solved my issue, kinda...

The query I was running had suspense enabled, which I'd hoped would mean my client-component marked page would begin rendering (client side), suspend due to data fetching and show my loading.tsx page, then it'd un-suspend once the data had finished fetching client-side.

Unfortunately, enabling suspense seems to trigger useQuery to run on the server. Because it doesn't have access to cookies, the requests fail (I can see this happening in my Nextjs dev server logs) and it's several seconds until RQ gives up on the server, everything renders in the browser and the requests go through as normal.

Looking at the docs for v4, I found:

Similarily, you must currently pre…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@TkDodo
Comment options

@MR-Mostafa
Comment options

@TkDodo
Comment options

@kawaijoe
Comment options

@TkDodo
Comment options

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