fix: suppress Mux Player React hydration warning#1116
Merged
luwes merged 1 commit intomuxinc:mainfrom May 20, 2025
Merged
Conversation
|
@decepulis is attempting to deploy a commit to the Mux Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
Author
|
On second thought, it's better if we fix this the proper way, by not sprouting player-init-time |
1 task
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
Merged
luwes
pushed a commit
that referenced
this pull request
Jun 13, 2025
🤖 I have created a release *beep* *boop* --- <details><summary>@mux/playback-core: 0.29.1</summary> ## [0.29.1](https://github.com/muxinc/elements/compare/@mux/playback-core@0.29.0...@mux/playback-core@0.29.1) (2025-06-12) ### Bug Fixes * **playback-core:** Change default of preferCmcd to 'none' for improved cacheability. Update reference docs to document preferCmcd (et al.). ([#1136](#1136)) ([4409304](4409304)) </details> <details><summary>@mux/mux-player: 3.4.1</summary> ## [3.4.1](https://github.com/muxinc/elements/compare/@mux/mux-player@3.4.0...@mux/mux-player@3.4.1) (2025-06-12) ### Bug Fixes * bring back cast button for drm protected videos ([#1137](#1137)) ([aa3a1ca](aa3a1ca)) * bump the prod-dependencies group across 2 directories with 1 update ([#1121](#1121)) ([85a2276](85a2276)) * bump the prod-dependencies group across 2 directories with 4 updates ([#1138](#1138)) ([0ac6871](0ac6871)) * **playback-core:** Change default of preferCmcd to 'none' for improved cacheability. Update reference docs to document preferCmcd (et al.). ([#1136](#1136)) ([4409304](4409304)) * rendition-menu visual improvements ([#1131](#1131)) ([59a2aaa](59a2aaa)), closes [#1122](#1122) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/mux-video bumped from 0.25.2 to 0.25.3 * @mux/playback-core bumped from 0.29.0 to 0.29.1 </details> <details><summary>@mux/mux-player-react: 3.4.1</summary> ## [3.4.1](https://github.com/muxinc/elements/compare/@mux/mux-player-react@3.4.0...@mux/mux-player-react@3.4.1) (2025-06-12) ### Bug Fixes * Ensure ref callback cleanup executes on MuxPlayer unmount ([#1132](#1132)) ([1c850b6](1c850b6)) * **playback-core:** Change default of preferCmcd to 'none' for improved cacheability. Update reference docs to document preferCmcd (et al.). ([#1136](#1136)) ([4409304](4409304)) * suppress Mux Player React hydration warning ([#1116](#1116)) ([0235d89](0235d89)) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/mux-player bumped from 3.4.0 to 3.4.1 * @mux/playback-core bumped from 0.29.0 to 0.29.1 </details> <details><summary>@mux/mux-audio: 0.15.9</summary> ## [0.15.9](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.15.8...@mux/mux-audio@0.15.9) (2025-06-12) ### Bug Fixes * bump the prod-dependencies group across 1 directory with 2 updates ([#1129](#1129)) ([e2ae00b](e2ae00b)) * bump the prod-dependencies group across 2 directories with 4 updates ([#1138](#1138)) ([0ac6871](0ac6871)) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/playback-core bumped from 0.29.0 to 0.29.1 </details> <details><summary>@mux/mux-audio-react: 0.15.9</summary> ## [0.15.9](https://github.com/muxinc/elements/compare/@mux/mux-audio-react@0.15.8...@mux/mux-audio-react@0.15.9) (2025-06-12) ### Miscellaneous Chores * **@mux/mux-audio-react:** Synchronize audio versions ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/playback-core bumped from 0.29.0 to 0.29.1 </details> <details><summary>@mux/mux-video: 0.25.3</summary> ## [0.25.3](https://github.com/muxinc/elements/compare/@mux/mux-video@0.25.2...@mux/mux-video@0.25.3) (2025-06-12) ### Bug Fixes * bump the prod-dependencies group across 1 directory with 2 updates ([#1129](#1129)) ([e2ae00b](e2ae00b)) * bump the prod-dependencies group across 2 directories with 4 updates ([#1138](#1138)) ([0ac6871](0ac6871)) * remove old cast events from mux-video ([73a85cd](73a85cd)) ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/playback-core bumped from 0.29.0 to 0.29.1 </details> <details><summary>@mux/mux-video-react: 0.25.3</summary> ## [0.25.3](https://github.com/muxinc/elements/compare/@mux/mux-video-react@0.25.2...@mux/mux-video-react@0.25.3) (2025-06-12) ### Miscellaneous Chores * **@mux/mux-video-react:** Synchronize video versions ### Dependencies * The following workspace dependencies were updated * dependencies * @mux/playback-core bumped from 0.29.0 to 0.29.1 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #1124
fix #1117
player-init-timeis generated differently on the server than it is on the client... which causes hydration warnings, e.g.,I propose adding
suppressHydrationWarningon Mux Player to... suppress this hydration warning.prior art
muxinc/media-chrome#992
drawbacks of this approach
other approaches proposed