Merged in fix/destinations-speed-test (pull request #1704)
Feat(destination pages): Performance improvements * fix/destinations: try cache full response * Added more caching * Removed unsed env car * wip * merge master * wip * wip * wip * Renaming Approved-by: Michael Zetterberg
This commit is contained in:
@@ -209,9 +209,11 @@ export const getHotelsByCityIdentifier = cache(
|
||||
})
|
||||
}
|
||||
)
|
||||
export const getAllHotels = cache(async function getMemoizedAllHotels() {
|
||||
return serverClient().hotel.hotels.getAllHotels.get()
|
||||
})
|
||||
export const getDestinationsMapData = cache(
|
||||
async function getMemoizedDestinationsMapData() {
|
||||
return serverClient().hotel.hotels.getDestinationsMapData()
|
||||
}
|
||||
)
|
||||
export const getDestinationCityPage = cache(
|
||||
async function getMemoizedDestinationCityPage() {
|
||||
return serverClient().contentstack.destinationCityPage.get()
|
||||
|
||||
Reference in New Issue
Block a user