Skip to content

Commit

Permalink
prevent hydration issues with video
Browse files Browse the repository at this point in the history
  • Loading branch information
IzaacAyelin committed May 20, 2024
1 parent 8156478 commit 25edcc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gallery/src/components/item/media/mediaItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function MediaItem<T extends Record<string, any>>(props: MediaPro
{props.hover}
</>
);
if (!isMediaPlayable) {
if (!isMediaPlayable || props.isPrerenderMode) {
return placeholder;
}

Expand Down

0 comments on commit 25edcc4

Please sign in to comment.