title: Sveltekit and SSR
body: <p>I need a bit of help understanding SSR in the context of sveltekit. I noticed that the <code>load</code> method is called both on the server and the client and I cannot wrap my head around this. I guess it is needed to initialize the state of the client-side component, but why not just pass the props resulting from the SSR to the client?</p>
  <p>What if a database request needs to be done during SSR? Now that same database request is repeated from the client? What if that is not even possible? I understand that I can use <code>browser</code> from <code>$app/env</code> to run different code on the server and in the browser but what props do I return? Is there any way to pass data from the server-side invocation of <code>load</code> to the client-side invocation?</p>