Replies: 1 comment
-
It's not possible to access them, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to get the
request
object (and/orclientAddress
,cookies
,locals
,platform
) like thePageServerLoad
inPageLoad
(+page.ts
) when it is server-side rendering on the initial request?I'm working on a "hybrid" solution for tRPC where the initial request calls the procedures directly server-side and then any client-side navigated requests use the fetch API. The server-side calls would require the context (request, cookies, etc) of the server-side request.
+page.server.ts
is render blocking, hence the idea for this solution to improve the UX for subsequent requests that are client-side rendered.Beta Was this translation helpful? Give feedback.
All reactions