Repository navigation
Replies: 1 comment
|
Fetching all data through The guiding mental model: RSC is your data fetcher; TanStack Query is your client-side async cache manager. Here is the decision matrix and best practices for combining them cleanly in production: 1. The Decision Matrix
2. When to use
|
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I have one question when using the beautiful features provided by the document.
That is, when should I use
prefetchQueryto fetch data?Currently, I fetch all data using
prefetchQueryin the RSC and useuseSuspenseQueryeverywhere it's consumed (on the client).However, I'm unsure if this is the correct approach.
I'm genuinely curious how others handle this and what the best-practices are.
All reactions