fix(LOY-64): memoize getCurrentRewards call
This commit is contained in:
@@ -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()
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user