fix(LOY-64): memoize getCurrentRewards call

This commit is contained in:
Chuma McPhoy
2024-12-13 10:59:36 +01:00
parent 079d8dbf33
commit 9d9084f60d
2 changed files with 11 additions and 3 deletions

View File

@@ -148,3 +148,9 @@ export const getCityCoordinates = cache(
return serverClient().hotel.map.city(input)
}
)
export const getCurrentRewards = cache(
async function getMemoizedCurrentRewards() {
return serverClient().contentstack.rewards.current()
}
)