12 lines
305 B
TypeScript
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()
|
|
})
|