Best approach to Fetch Data, search params with Server Components or manual fetch?
Unanswered
Polish posted this in #help-forum
PolishOP
Hello everyone,
Following the Learn path from NextJs I had a concern regarding the best way to fetch data.
On the page their are suggesting that we use search params url to perform GET request on the server like pagination and queries.
I understand the advantages of this, but, it seems that those request to the backend returns the complete server component rendered response (larger response) and not only the data, in these case the json of the current invoices, like using a normal fetch request.
Is the extra response size not important? What about in a large page?
What approach is the best and recommended?
Following the Learn path from NextJs I had a concern regarding the best way to fetch data.
On the page their are suggesting that we use search params url to perform GET request on the server like pagination and queries.
I understand the advantages of this, but, it seems that those request to the backend returns the complete server component rendered response (larger response) and not only the data, in these case the json of the current invoices, like using a normal fetch request.
Is the extra response size not important? What about in a large page?
What approach is the best and recommended?