Replies: 1 comment 11 replies
-
I think you can dehydrate the query client, which just puts it into an object. Then, you can map over the
|
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using nextjs 14 app router and tanstack query 5.40+ (no persist)
https://tanstack.com/query/v5/docs/framework/react/guides/advanced-ssr#streaming-with-server-components
I'm trying to use no-await prefetch method, but whenever I get a error from server component, I get this error message and can't get original error object anywhere.
I found comments about reason for redacted error (retry in client component),
however there are also errors that do not need to be retried because they will failed anyway (like auth token expired)
So isn't there a way to handle error content before dehydrate query.promise?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions