Why the fetch requests in server components do not wait for layout fetches? #62672
Unanswered
aomini
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the code example below, the order of requests sent to the server is
/posts?id=undefined
/my-first-post
/posts?id=1
Where I wanted to structure the server-components in such a way that the order of requests should be
/my-first-post
/posts?id=1
Example where the requests aren't being sent as expected why?
layout.js
PostComponent.js
Beta Was this translation helpful? Give feedback.
All reactions