Is generateMetadata
blocked by generateViewport
?
#66421
Replies: 1 comment
-
In this screenshot, the bottom group of tracing spans involve a network request to gather data about the viewport from a headless CMS. The top group of tracing spans (connected by a red line I added) are the request to gather data related to the metadata for the page. It doesn't feel like either of these functions should require the other to complete first before processing its own data. They are both defined within the same I am also curious about the large gap circled that is a pause between our express.js server calling Next's request handler and our first lines of code in our In the page's directory traces we have, there is no gap between starting the Next request handler and our code in the App and Document components executing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are working on adopting the Next app router and have been tracing and testing our initial POC pages before migrating.
While doing so I am noticing that
generateMetadata
functions for us are executing aftergenerateViewport
completes. Is this expected? I would have thought they would execute in parallel and any precedence overriding would happen while merging results from each of them.Is anyone familiar with this functionality within Next?
Beta Was this translation helpful? Give feedback.
All reactions