Skip to content
Discussion options

You must be logged in to vote

I believe load will always run on server and client, since it's used to both server-render and hydrate the page. If you want something to only run on the server, you should extract the logic into an endpoint and call that endpoint from the load method.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@mcmxcdev
Comment options

Answer selected by ignatiusmb
Comment options

You must be logged in to vote
1 reply
@mcmxcdev
Comment options

Comment options

You must be logged in to vote
1 reply
@homerjam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants