From 819537da0f227421a0e3b359b42f48b7aa3cda3a Mon Sep 17 00:00:00 2001 From: thornbill Date: Sat, 7 Sep 2024 18:07:32 -0400 Subject: [PATCH] Backport pull request #6011 from jellyfin-web/release-10.9.z Fix network mode for localhost server Original-merge: b9925ebf73744b0765fe5796392a701020f0df54 Merged-by: thornbill Backported-by: Joshua M. Boniface --- src/utils/query/queryClient.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/utils/query/queryClient.ts b/src/utils/query/queryClient.ts index 6d46de5917..00361716a1 100644 --- a/src/utils/query/queryClient.ts +++ b/src/utils/query/queryClient.ts @@ -1,3 +1,12 @@ import { QueryClient } from '@tanstack/react-query'; -export const queryClient = new QueryClient(); +export const queryClient = new QueryClient({ + defaultOptions: { + mutations: { + networkMode: 'always' // network connection is not required if running on localhost + }, + queries: { + networkMode: 'always' // network connection is not required if running on localhost + } + } +});