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

Add hack to prevent rerendering legacy views in development #6205

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

thornbill
Copy link
Member

Changes
This fixes an issue where legacy views will sometimes break when running in development mode due to React intentionally re-rendering as a debugging feature. Most notably the video player would crash when this happened.

Issues
N/A

@thornbill thornbill added the bug Something isn't working label Oct 15, 2024
@thornbill thornbill added this to the v10.10.0 milestone Oct 15, 2024
@thornbill thornbill requested a review from a team as a code owner October 15, 2024 15:45
@jellyfin-bot
Copy link
Collaborator

jellyfin-bot commented Oct 15, 2024

Cloudflare Pages deployment

Latest commit 4d9ad83
Status ✅ Deployed!
Preview URL https://0368daf0.jellyfin-web.pages.dev
Type 🔀 Preview

View build logs

Copy link

sonarcloud bot commented Oct 15, 2024

@thornbill thornbill merged commit d3fc368 into jellyfin:master Oct 17, 2024
14 checks passed
@thornbill thornbill deleted the no-rerender-hack branch October 17, 2024 20:34
@dmitrylyzo
Copy link
Contributor

It looks like we should check location and if it has been changed, load the view. At the moment only the first view is loaded in non-experimental mode.

@abdulmueid
Copy link
Contributor

This commit breaks navigation for me in Desktop and TV mode during development and production. I can't navigate to different screens past this commit, everything works if I rollback to one commit before this one.
Just reporting here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants