-
Notifications
You must be signed in to change notification settings - Fork 57
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
storage.uploadFile does not return UploadTask #177
Comments
I resolved it calling the function directly and wait for the task to finish at the bottom.
It's important to update the documentation. |
Hi there, Thanks for the feedback! Unfortunately that's a side effect of So, as far as I can tell, your solution is correct, even though you lose the ability to properly test your saga. That's actually exactly what I did in the example codebase to go around this issue. I'll update the docs, thanks! |
Yes, the test is difficult to with this change. But using a manual mock with jest for returning the correct answer, It worked for me. Thanks to you. |
I am calling the 'storage.uploadFile' function and I get an error when trying to subscribe to the event channel. This is because the function returns an 'UploadTaskSnapshot' object. This is my code:
The image is saved in Firebase but I am going to display the progress bar with the information of the snapshot but in the task.
The text was updated successfully, but these errors were encountered: