Its not possible to read params in server components, WHYY? #66862
Unanswered
G3EORG3E
asked this question in
App Router
Replies: 1 comment 3 replies
-
In server the main page server components you can get the params using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's convenient that the fetch request is cached during a single render, allowing multiple components to call it while only making one actual request. However, since most requests depend on URL parameters, I still need to pass props down to the components that need to make the call.
Consequently, the idea of calling the request in every component becomes somewhat pointless, as I end up drilling down all the necessary props anyway. Therefore, I might as well directly pass down the request results.
So is there any way to escape this hell? Because it seems like this is an absolutely crucial issue that hasn't been resolved at all.
Beta Was this translation helpful? Give feedback.
All reactions