diff --git a/src/fetcher/url_handler.js b/src/fetcher/url_handler.js index f04a43cb..d6d7f350 100644 --- a/src/fetcher/url_handler.js +++ b/src/fetcher/url_handler.js @@ -66,8 +66,10 @@ async function get(url, options) { ...options, signal: controller.signal, credentials: options.withCredentials ? 'include' : 'omit', + }) + .finally(()=>{ + clearTimeout(timer); }); - clearTimeout(timer); const error = handleError(response); if (error) {