Fix Next.js 15 compatibility
This commit is contained in:
parent
bd59a9ba83
commit
537e261570
@ -102,31 +102,31 @@ const getPhotosCacheKeys = (options: PhotoQueryOptions = {}) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const revalidatePhotosKey = () =>
|
export const revalidatePhotosKey = () =>
|
||||||
revalidateTag(KEY_PHOTOS, 'max');
|
revalidateTag(KEY_PHOTOS);
|
||||||
|
|
||||||
export const revalidateAlbumsKey = () =>
|
export const revalidateAlbumsKey = () =>
|
||||||
revalidateTag(KEY_ALBUMS, 'max');
|
revalidateTag(KEY_ALBUMS);
|
||||||
|
|
||||||
export const revalidateTagsKey = () =>
|
export const revalidateTagsKey = () =>
|
||||||
revalidateTag(KEY_TAGS, 'max');
|
revalidateTag(KEY_TAGS);
|
||||||
|
|
||||||
export const revalidateRecipesKey = () =>
|
export const revalidateRecipesKey = () =>
|
||||||
revalidateTag(KEY_RECIPES, 'max');
|
revalidateTag(KEY_RECIPES);
|
||||||
|
|
||||||
export const revalidateCamerasKey = () =>
|
export const revalidateCamerasKey = () =>
|
||||||
revalidateTag(KEY_CAMERAS, 'max');
|
revalidateTag(KEY_CAMERAS);
|
||||||
|
|
||||||
export const revalidateLensesKey = () =>
|
export const revalidateLensesKey = () =>
|
||||||
revalidateTag(KEY_LENSES, 'max');
|
revalidateTag(KEY_LENSES);
|
||||||
|
|
||||||
export const revalidateFilmsKey = () =>
|
export const revalidateFilmsKey = () =>
|
||||||
revalidateTag(KEY_FILMS, 'max');
|
revalidateTag(KEY_FILMS);
|
||||||
|
|
||||||
export const revalidateFocalLengthsKey = () =>
|
export const revalidateFocalLengthsKey = () =>
|
||||||
revalidateTag(KEY_FOCAL_LENGTHS, 'max');
|
revalidateTag(KEY_FOCAL_LENGTHS);
|
||||||
|
|
||||||
export const revalidateYearsKey = () =>
|
export const revalidateYearsKey = () =>
|
||||||
revalidateTag(KEY_YEARS, 'max');
|
revalidateTag(KEY_YEARS);
|
||||||
|
|
||||||
export const revalidateAllKeys = () => {
|
export const revalidateAllKeys = () => {
|
||||||
revalidatePhotosKey();
|
revalidatePhotosKey();
|
||||||
@ -151,7 +151,7 @@ export const revalidateAllKeysAndPaths = () => {
|
|||||||
|
|
||||||
export const revalidatePhoto = (photoId: string) => {
|
export const revalidatePhoto = (photoId: string) => {
|
||||||
// Tags
|
// Tags
|
||||||
revalidateTag(photoId, 'max');
|
revalidateTag(photoId);
|
||||||
revalidateYearsKey();
|
revalidateYearsKey();
|
||||||
revalidateCamerasKey();
|
revalidateCamerasKey();
|
||||||
revalidateLensesKey();
|
revalidateLensesKey();
|
||||||
|
|||||||
@ -371,7 +371,7 @@ export default function PhotoForm({
|
|||||||
blurCompatibilityLevel="none"
|
blurCompatibilityLevel="none"
|
||||||
width={thumbnailDimensions.width}
|
width={thumbnailDimensions.width}
|
||||||
height={thumbnailDimensions.height}
|
height={thumbnailDimensions.height}
|
||||||
preload
|
priority
|
||||||
/>;
|
/>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user