From 1b79fed61ae8262ca3eed245fe5f944423955241 Mon Sep 17 00:00:00 2001 From: IzaacAyelin <47495047+IzaacAyelin@users.noreply.github.com> Date: Mon, 20 May 2024 15:58:46 +0300 Subject: [PATCH] prevent hydration issues with video (#1238) --- packages/gallery/src/components/item/media/mediaItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gallery/src/components/item/media/mediaItem.tsx b/packages/gallery/src/components/item/media/mediaItem.tsx index 8ee3fc5d0..d08ce8792 100644 --- a/packages/gallery/src/components/item/media/mediaItem.tsx +++ b/packages/gallery/src/components/item/media/mediaItem.tsx @@ -113,7 +113,7 @@ export default function MediaItem>(props: MediaPro {props.hover} ); - if (!isMediaPlayable) { + if (!isMediaPlayable || props.isPrerenderMode) { return placeholder; }