Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

cancel download without executing .then() #710

Open
mojtaba-hajishah opened this issue Jun 10, 2018 · 0 comments
Open

cancel download without executing .then() #710

mojtaba-hajishah opened this issue Jun 10, 2018 · 0 comments

Comments

@mojtaba-hajishah
Copy link

I've been trying to find a way to cancel download requests.
found this gist and it works.
calling cancel() will stop the request.
but after calling cancel(), then() always gets executed.
the result of calling cancel() in this gist is : [ DOWNLOAD IS COMPLETED ]
desired result : [ DOWNLOAD IS CANCELLED ]

react-native-fetch-blob: v 0.10.8
react-native: v 0.55.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant