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

Only connect to ServerConnections once #6150

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

viown
Copy link
Member

@viown viown commented Oct 1, 2024

Currently, the client will send a request to ServerConnections.connect every time we switch pages. With this, the behaviour should now be the same as prior to app routing being removed.

Changes
Change it so that we only connect to ServerConnections once with each session, reducing unnecessary calls to /System/Info/Public with each navigation.

Issues
Fixes #6143

@viown viown requested a review from a team as a code owner October 1, 2024 18:22
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

src/components/ConnectionRequired.tsx Outdated Show resolved Hide resolved
src/components/ConnectionRequired.tsx Outdated Show resolved Hide resolved
src/components/ConnectionRequired.tsx Outdated Show resolved Hide resolved
src/components/ConnectionRequired.tsx Outdated Show resolved Hide resolved
@viown viown marked this pull request as draft October 1, 2024 18:37
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

src/components/ConnectionRequired.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

src/components/ConnectionRequired.tsx Outdated Show resolved Hide resolved
src/components/ConnectionRequired.tsx Outdated Show resolved Hide resolved
@viown viown force-pushed the fix-dashboard-theming branch 2 times, most recently from 1428d79 to 32e078b Compare October 2, 2024 10:44
@viown viown marked this pull request as ready for review October 3, 2024 05:43
@viown viown marked this pull request as draft October 3, 2024 13:18
@viown viown marked this pull request as ready for review October 3, 2024 13:59
@viown viown marked this pull request as draft October 3, 2024 14:17
Copy link

sonarcloud bot commented Oct 4, 2024

@viown
Copy link
Member Author

viown commented Oct 4, 2024

https://github.com/jellyfin/jellyfin-web/pull/6150/files#diff-c84866e0254b477bbe1e330af1825378d7c0e3dc5cf838f08cb4fb768eb70ba5R156

There is an issue where if you try to login after refreshing the login page it won't redirect you (this existed prior to this PR, even in 10.9), so might as well fix it here.

@jellyfin-bot
Copy link
Collaborator

Cloudflare Pages deployment

Latest commit 0436c2c31d0664e9bb5ca2f7509e1cdc56550d66
Status ✅ Deployed!
Preview URL https://aa332725.jellyfin-web.pages.dev
Type 🔀 Preview

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.

Changing dashboard page applies non-dashboard theme
2 participants