Replies: 2 comments 2 replies
-
I don't know when
|
Beta Was this translation helpful? Give feedback.
-
How does one handle a not found error from fetchQuery inside this Also how does one handle a not found in the prefetch query? What if I want to redirect to a 404? Where does this logic go?
next will cache the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I've followed this approach : https://tanstack.com/query/v5/docs/framework/react/guides/advanced-ssr
But I'm not sure how to do If I need to make a query inside
generateMetadata
Here is how I do:
getOrders
does afetch
:Is it a good approach?
And how's caching handled since I use both react-query and next/fetch?
Thanks for helping me here!
Beta Was this translation helpful? Give feedback.
All reactions