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 1 commit into
base: master
Choose a base branch
from

Conversation

viown
Copy link
Contributor

@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
Copy link

sonarcloud bot commented Oct 2, 2024

@jellyfin-bot
Copy link
Collaborator

Cloudflare Pages deployment

Latest commit 32e078b0bb8d3de6c28aa1f92d65c69869c4d318
Status ✅ Deployed!
Preview URL https://bf14fe25.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