Merged in feat/sw-3006-timeout-fetch (pull request #2335)
feat(SW-3006): added default timeout to all requests * feat(sw-3006): added default timeout to all requests * Fixed spreading Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -11,6 +11,7 @@ export async function warmupHotelDataOnLang(lang: Lang) {
|
||||
`${PUBLIC_URL}/api/hoteldata?lang=${lang}`,
|
||||
{
|
||||
headers: { cache: "no-store" },
|
||||
signal: AbortSignal.timeout(30_000),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user