-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
useRequestPreSend isn't isolated #758
Comments
It's been a while. Waiting for an update... 🧐 |
hey @maxsalven |
This is actually a serious bug. Interesting how its never been raised before. The issue isn't with the isolation of the Will fix soon. thanks! |
Fantastic, thanks @yoavniran! Do you know if there's an easy way for me to test this in my app prior to an npm release being published? |
I'll publish an RC version to npm for you to test with. |
@maxsalven RC version released and can be tested. |
@yoavniran I've been running this in production for the last 24 hours and everything seems to be working! Thanks so much for your efforts. |
great to hear. thanks for the update |
Version 1.8.3
If you upload multiple files at once, named
a.txt
andb.txt
, then in the network call to/b
you'll see it has botha
andb
headers:I'd expect two separate file uploads to have isolated options, and not have them polluting each other.
This is a real world problem, as I need to send video uploads via tus, and all other uploads via xhr to different endpoints with different parameters (specifically, I need to override
send
with the regular xhr sender for non video files), but the requests end up overwriting each other and it ends up trying to use the xhr sender for the tus endpoint.The text was updated successfully, but these errors were encountered: