Skip to content

Conversation

@DrewCerny
Copy link

Issue #354 Fixed by adding loadend to the list of events watched by the passthrough

export function createPassthrough(fakeXHR, nativeXMLHttpRequest) {
// event types to handle on the xhr
var evts = ['error', 'timeout', 'abort', 'readystatechange'];
var evts = ['error', 'timeout', 'abort', 'readystatechange','loadend'];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var evts = ['error', 'timeout', 'abort', 'readystatechange','loadend'];
var evts = ['error', 'timeout', 'abort', 'readystatechange', 'loadend'];

@miguelsmatos
Copy link

This looks like a very simple fix to me, can we move forward with it?

@ailish-mccarthy-lrn
Copy link

Would be great to get this fix in!

@mark-barrett-lrn
Copy link

I agree with @ailish-mccarthy-lrn, this is such a simple fix that would unblock a lot of people. Lets get it merged 🚀

@michael-linnane-lrn
Copy link

Can this be actioned please. This can be a blocker for a lot of products using Axios

@hmust92
Copy link

hmust92 commented Jun 9, 2025

Yes please. Currently needing to implement a patch to add this. Would love for this to get merged in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants