Resource logging when using AbortController signal
codybrouwers opened this issue · comments
I've enabled setResourceLoggingEnabled
and it works great until I add an AbortController
signal to my fetch calls. I did some digging and it seems that when using a signal the overwritten onreadystatechange
property doesn't get called in the resource-logger.ts
here.
I was able to get it working If I use instead invoke that same function with a listener like this:
super.addEventListener("readystatechange", () => {
I'm not too familiar with the internals of XMLHttpRequest
and how fetch
uses it so I'm not sure why this fixes the issue but if you think this is a safe change to make I'm happy to open a PR!