Files
web/lib/trpc/memoizedRequests/index.ts
2024-09-24 09:47:31 +02:00

12 lines
305 B
TypeScript

import { cache } from "react"
import { serverClient } from "../server"
export const getLocations = cache(async function getMemoizedLocations() {
return serverClient().hotel.locations.get()
})
export const getProfile = cache(async function getMemoizedProfile() {
return serverClient().user.get()
})