TomDohnal
Explore posts from serversTTCTheo's Typesafe Cult
•Created by TomDohnal on 12/17/2024 in #questions
Am I missing the point of using `use` for data fetching with server components?
In the react docs, they give the following example for how to use the
use
function:
I'm not quite sure I get the benefit of doing that over having the Message
component be a server component and fetch the data in there:
To me it seems like the two examples lead to the equivalent UX and I don't see any benefit of using the use
function and passing the promise from the server component to the client component. Am I missing the point?1 replies