From 7e0afdfd662fac2f8b3d47cd86f15d225e985bdf Mon Sep 17 00:00:00 2001 From: grafixeyehero <32230989+grafixeyehero@users.noreply.github.com> Date: Sat, 1 Jun 2024 18:42:05 -0400 Subject: [PATCH] Backport pull request #5619 from jellyfin-web/release-10.9.z Clear the cache view on user logout Original-merge: 4959a777c9177f9eccb738201f397b21adde3928 Merged-by: thornbill Backported-by: Joshua M. Boniface --- src/components/ServerConnections.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ServerConnections.js b/src/components/ServerConnections.js index c46a492856..3a3d22c056 100644 --- a/src/components/ServerConnections.js +++ b/src/components/ServerConnections.js @@ -6,6 +6,7 @@ import Dashboard from '../utils/dashboard'; import Events from '../utils/events.ts'; import { setUserInfo } from '../scripts/settings/userSettings'; import appSettings from '../scripts/settings/appSettings'; +import viewContainer from './viewContainer'; import { queryClient } from 'utils/query/queryClient'; const normalizeImageOptions = options => { @@ -44,6 +45,8 @@ class ServerConnections extends ConnectionManager { credentialProvider.credentials(credentialProvider.credentials()); // Reset the query cache queryClient.resetQueries(); + // Reset cached views + viewContainer.reset(); if (window.NativeShell && typeof window.NativeShell.onLocalUserSignedOut === 'function') { window.NativeShell.onLocalUserSignedOut(logoutInfo);