|
|
7b91fe1975
|
Generated by Spark: I am having issues with this. Remember, we should be defaulting to IndexedDB, not the Flask API. Flask API is obtained by explicitly setting it in the UI or setting a env variable. export default function applyFetchPatch() {
if (ssrSafeWindow) {
ssrSafeWindow.fetch = async (input: string | URL | Request, init?: RequestInit) => {
try {
const response = await globalFetch(input, init)
sendFetchStats({input, error: !response.ok, status: response.status})
return response
} catch (error) {
sendFetchStats({input, error: true, status: 'unknown'})
throw error
}
}
}
}
|
2026-01-17 18:50:06 +00:00 |
|