Improve getPhotosMeta caching
This commit is contained in:
parent
4eacce7456
commit
6585b29652
@ -188,12 +188,10 @@ export const getPhotosNearIdCached = (
|
||||
};
|
||||
});
|
||||
|
||||
export const getPhotosMetaCached = (
|
||||
...args: Parameters<typeof getPhotosMeta>
|
||||
) => unstable_cache(
|
||||
export const getPhotosMetaCached = unstable_cache(
|
||||
getPhotosMeta,
|
||||
[KEY_PHOTOS, KEY_COUNT, KEY_DATE_RANGE, ...getPhotosCacheKeys(...args)],
|
||||
)(...args);
|
||||
[KEY_PHOTOS, KEY_COUNT, KEY_DATE_RANGE],
|
||||
);
|
||||
|
||||
export const getPhotosMostRecentUpdateCached =
|
||||
unstable_cache(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user