Isn’t the “new fetch pattern” turning things into the same as they were before graphql?
When using graphql, the idea is to ask what you need and only what you need, for a whole page, using a single request. Preventing request “race conditions”(lack of a better term), separate requests asking for the same data like user name.
With things like Layout RFC and React Server Components, and even hooks, theoretically each component now should be responsible for fetching its own data.
Don’t get me wrong, DX wise I prefer this way more over than the prop drilling pattern of having a query run in a
/page
, then passing
data
or
data.whatever
down to each component
But if each component is now doing its own request, we’re coming back to the REST pattern anyway. Each component does its own request, and separate requests asking for the same data like user name.
It’s just being done in a different way... But it’s the same thing. The only big difference I see is the apollo cache if using apollo