@@ -127,7 +127,7 @@ Learn more about [streaming metadata](/docs/app/api-reference/functions/generate
...
@@ -127,7 +127,7 @@ Learn more about [streaming metadata](/docs/app/api-reference/functions/generate
There may be cases where you need to fetch the **same** data for metadata and the page itself. To avoid duplicate requests, you can use React's[`cache`function](https://react.dev/reference/react/cache)tomemoizethereturnvalueandonlyfetchthedataonce.Forexample,tofetchtheblogpostinformationforboththemetadataandthepage:
There may be cases where you need to fetch the **same** data for metadata and the page itself. To avoid duplicate requests, you can use React's[`cache`function](https://react.dev/reference/react/cache)tomemoizethereturnvalueandonlyfetchthedataonce.Forexample,tofetchtheblogpostinformationforboththemetadataandthepage: