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
In 2021 axios added the following change to onreadystatechange axios/axios#3688 which replaces onloadend instead of onreadystatechange on the axios instance:
if ('onloadend' in request) {
// Use onloadend if available
request.onloadend = onloadend;
} else {
// Listen for ready state to emulate onloadend
request.onreadystatechange = function handleLoad() {
...
}
this causes the MiniProfiler hooks for axios to stop working because onreadystatechange is no longer available as a hook
I am not familiar with Axios at all (loooooong ago support), but if someone has a contribution here for checking for the new hook also, I think it's totally reasonable to add that and would be happy to review PR there.
In 2021 axios added the following change to onreadystatechange axios/axios#3688 which replaces onloadend instead of onreadystatechange on the axios instance:
this causes the MiniProfiler hooks for axios to stop working because onreadystatechange is no longer available as a hook
dotnet/src/MiniProfiler.Shared/ui/lib/MiniProfiler.ts
Line 1351 in ec36a24
this.onreadystatechange will always be null for axios:
The text was updated successfully, but these errors were encountered: