You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our app is making scheduled request every N seconds. After some time IE11 stops doing requests.
I try to search web and it looks like there is a bug in IE11. It does not handle XHR callbacks properly.
See similar issue on bluebird repository.
So I try workaround - wrap resolve to setTimeout and it works.
Thanks for letting us know. Unfortunately, I don't think there is anything we can do here to fix IE behavior, sans wrapping every XHR call in an arbitrary setTimeout. We won't do that, because if we choose a value for the timeout e.g. 10 seconds, then we prevent everyone from making requests that may take longer than 10 seconds.
This issue is not about making XHR call in setTimeout but about resolving Promise with results from completed XHR.
In IE 11 calling resolve within XHR onload handler may hang indefinitely if there's no active DOM operations. But calling resolve within setTimeout works fine.
Activity
mislav commentedon Jun 12, 2017
Thanks for letting us know. Unfortunately, I don't think there is anything we can do here to fix IE behavior, sans wrapping every XHR call in an arbitrary
setTimeout. We won't do that, because if we choose a value for the timeout e.g. 10 seconds, then we prevent everyone from making requests that may take longer than 10 seconds.The workaround which you can do in your project is wrapping all your
fetchcalls in a Promise-based timeout helper as suggested here.Fix issue JakeChampion#533
CrOrc commentedon Oct 24, 2017
Please reopen this issue.
This issue is not about making XHR call in setTimeout but about resolving Promise with results from completed XHR.
In IE 11 calling resolve within XHR onload handler may hang indefinitely if there's no active DOM operations. But calling resolve within setTimeout works fine.
mislav commentedon Oct 27, 2017
Ah, I realize now what the OP was proposing above. Thanks for providing more information.
ADagen commentedon Dec 18, 2017
Hey guys, let's move on.