11 lines
240 B
TypeScript
11 lines
240 B
TypeScript
import { cache } from "react"
|
|
|
|
import { serverClient } from "../../trpc"
|
|
|
|
export const getProfileSafely = cache(
|
|
async function getMemoizedProfileSafely() {
|
|
const caller = await serverClient()
|
|
return caller.user.getSafely()
|
|
}
|
|
)
|