s
This commit is contained in:
@@ -32,7 +32,7 @@ function extractErrorMessage(
|
||||
}
|
||||
|
||||
export async function fetchJsonResponse<T>(url: string, init?: RequestInit): Promise<T> {
|
||||
const response = await fetch(url, init);
|
||||
const response = await fetch(url, { cache: "no-store", ...init });
|
||||
const raw = await response.text();
|
||||
const trimmed = raw.trim();
|
||||
let payload: (T & JsonErrorPayload) | null = null;
|
||||
|
||||
Reference in New Issue
Block a user