How to prefetch in server component inside next 16.0.1
Hello I have this server component
which is wrapped in suspense inside page.tsx
i'm trying to prefetch data build time, feed the query and then my components consume it, problem is i see those errors
3 Replies
fascinating-indigoOP•4w ago
any idea how to prefetch data in next 16.0.1
stormy-gold•4w ago
why would you do
await getEvents and then setQueryData manually instead of calling queryClient.prefetchQuery ? I don't think we show the pattern you're using anywhere in the docs ...extended-salmon•3w ago
I'm running into a similar issue -- is there an example of using react-query with hydration boundaries and server prefetching combined with the new cacheComponents in next 16?