Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Task stays idle on unhandled exception #31

Open
progand opened this issue Feb 20, 2019 · 4 comments
Open

Task stays idle on unhandled exception #31

progand opened this issue Feb 20, 2019 · 4 comments

Comments

@progand
Copy link

progand commented Feb 20, 2019

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?

@alidcast
Copy link
Owner

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?

@progand
Copy link
Author

progand commented Feb 21, 2019

@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?

@alidcast
Copy link
Owner

alidcast commented Feb 21, 2019

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

@MartinMalinda
Copy link

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

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

3 participants