Skip to content

Getting Cookies (Raw Request) from Page Request in Loader / BeforeLoad #3649

Answered by schiller-manuel
uap-dev asked this question in Q&A
Discussion options

You must be logged in to vote

you cant run getWebRequest() in beforeLoad or loader as those methods run on both the client and the server.
if you need them run only on the server, wrap the logic into a server function. inside the server function you can then call getWebRequest()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@uap-dev
Comment options

Answer selected by uap-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants