Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix hydration issue by preventing template creation during SSR #1294

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

Galpittel
Copy link
Collaborator

@Galpittel Galpittel commented Nov 12, 2024

Disable SSR <template> creation issue in Gallery UI components by implementing client-side only rendering for lazy-loaded components.

Make the videoPlayButton and rotateArrow components render only on the client side and wraps them properly to prevent React from creating unwanted <template> tags, while keeping all the original functionality intact.

Prevents hydration issues.

@Galpittel Galpittel merged commit b281fbc into master Nov 20, 2024
8 checks passed
@Galpittel Galpittel deleted the play-button-fix-ssr-hydration-issues branch November 20, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants