Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passthrough issue for libraries using loadend instead of onreadystatechange (Axios) #355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DrewCerny
Copy link

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

@@ -1,6 +1,6 @@
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 🚀

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.

4 participants