Skip to content

Commit ea67ca9

Browse files
whymarrhdanjm
authored andcommitted
Use custom fetch wrapper with timeout for fetch-with-cache
1 parent 2b5143c commit ea67ca9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/app/helpers/utils/fetch-with-cache.js

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import {
22
loadLocalStorageData,
33
saveLocalStorageData,
44
} from '../../../lib/local-storage-helpers'
5+
import http from './fetch'
6+
7+
const fetch = http({
8+
timeout: 30000,
9+
})
510

611
export default function fetchWithCache (url, opts, cacheRefreshTime = 360000) {
712
const currentTime = Date.now()

0 commit comments

Comments
 (0)