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 crash if customRequest does not call onSuccess() / onError() #60

Merged
merged 1 commit into from
Dec 30, 2016
Merged

Conversation

JesperWe
Copy link
Contributor

The component is currently a bit fragile: If a customRequest does not call onSuccess() / onError() upon completion or error, the this.reqs[uid] value will not be deleted, but === undefined, and then when the Upload component un-mounts, it will try to abort() an undefined request, and crash.

The component is currently a bit fragile: If a customRequest does not call `onSuccess()` / `onError()` upon completion or error, the `this.reqs[uid]` value will not be deleted, but === undefined, and then when the Upload component un-mounts, it will try to `abort()` an undefined request, and crash.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 30.283% when pulling c0e9b74 on JesperWe:patch-1 into 25961cf on react-component:master.

@shepherdwind shepherdwind merged commit e8997dd into react-component:master Dec 30, 2016
@JesperWe JesperWe deleted the patch-1 branch December 30, 2016 14:47
@shepherdwind
Copy link
Contributor

2.3.2 published

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.

3 participants