fix(webui): prevent redundant thread and media reloads (#5164)
This commit is contained in:
1 parent
fc73d5ff39
commit
11fcd9cc5f
29 files changed
+1465
-247
No files matched your search
@@ -171,6 +171,7 @@ export interface FetchWebuiThreadOptions {
|
||||
limit?: number;
|
||||
direction?: "latest";
|
||||
before?: string | null;
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
export async function fetchWebuiThread(
|
||||
@@ -192,6 +193,7 @@ export async function fetchWebuiThread(
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
credentials: "same-origin",
|
||||
cache: "no-store",
|
||||
signal: options?.signal,
|
||||
});
|
||||
if (res.status === 404) return null;
|
||||
if (!res.ok) throw new ApiError(res.status, `HTTP ${res.status}`);
|
||||
|
||||
Reference in new issue
Block a user