Skip to content

SSR FAQ

Can I create a session during server rendering?

No. Initialize on the client after hydration.

Example

ts
import { isBrowser } from "@jayoncode/browser-lifecycle";

if (isBrowser()) {
  createBrowserLifecycle();
}

SSR

JOC is a JayOnCode monorepo of @jayoncode/* packages. Docs sync from source via TypeDoc and sync scripts.