feat(SW-66, SW-348): search functionality and ui
This commit is contained in:
11
lib/trpc/memoizedRequests/index.ts
Normal file
11
lib/trpc/memoizedRequests/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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()
|
||||
})
|
||||
Reference in New Issue
Block a user