async function getSessionUser() { const session = await getSession(); const userId = session.data.userId; return await db.user.findUnique({ where: { id:userId } });}async function getSessionUserDeduped() { const { locals } = getRequestEvent(); locals.getSessionUser ??= getSessionUser(); return await locals.getSessionUser;}
jsx: preserve
owner
Router
preload
import { RemultSolidStart } from "@remult/solid";
@remult/solid