Closed JkmAS closed 3 years ago
AbortError is called even though the task ended with success status. This happens to me on route change.
success
Maybe it's related to this issue https://github.com/MartinMalinda/vue-concurrency/issues/13
const task = useTask(function* (signal) { const revert = (error?) => { console.log('status': task.last?.status); // success notifyError(); }; signal.pr.catch(revert); // <-- abort('cancel') try { yield apiTask.perform(); } catch (e) { revert(e); } }).drop();
Fixed in 2.1.3 https://github.com/MartinMalinda/vue-concurrency/commit/76af0d55549d1ca39c0dedfd082af3fab007a907
AbortError is called even though the task ended with
success
status. This happens to me on route change.Maybe it's related to this issue https://github.com/MartinMalinda/vue-concurrency/issues/13