Improve getPhotosMeta caching

This commit is contained in:
Sam Becker 2025-04-06 15:13:05 -05:00
parent 4eacce7456
commit 6585b29652

View File

@ -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(