vuency icon indicating copy to clipboard operation
vuency copied to clipboard

Task stays idle on unhandled exception

Open progand opened this issue 6 years ago • 4 comments

I've encountered a bug. My code:

<script>
...
    remove: t(function*() {
                try {
                    yield fetch('http://domain.not.exists')          
                } catch (e) {
                    this.handleError(e)
                }
            }).flow('drop'),
...
</script>

<template>
    {{remove.isActive}}
</template>

Every time fetch('http://domain.not.exists') throws an exception I see error in console but task remains active so remove.isActive === true

Maybe I'm using vuency wrongly?

progand avatar Feb 20 '19 07:02 progand

hi @progand. this plugin has not been updated in over a year (and has not been well maintained in general), so I would not recommend using it! sorry if that caused any hassle, perhaps I should archive repo?

alidcast avatar Feb 20 '19 17:02 alidcast

@alidcastano I was wondering why did you abandoned ency. Do you think people don't need it? Can you recommend something similar to ency/vuency?

progand avatar Feb 21 '19 05:02 progand

well for one, i'm using react now :) but also, using lodashs throttle and debounce goes a long way for most people. and libraries like apollo (if you're using graphql) now handle setting loading state well in response to mutations

alidcast avatar Feb 21 '19 05:02 alidcast

Just chiming in here to say that https://github.com/MartinMalinda/vue-concurrency is maintained and actively used, at least by me, at work :-)

MartinMalinda avatar Aug 20 '20 15:08 MartinMalinda