Skip to content
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

Is there any way to make it work in an async way? #116

Open
Sean-Y-X opened this issue May 12, 2020 · 1 comment
Open

Is there any way to make it work in an async way? #116

Sean-Y-X opened this issue May 12, 2020 · 1 comment

Comments

@Sean-Y-X
Copy link

Thanks for this awesome library.

Just wondering if there is any way to make it async.

For example, aftering sliding to the right, call an api and waiting for the api response then show the complete animation.

@cortinico
Copy link
Owner

Hi @Sean-Y-X

Unfortunately there is no support for this feature at the moment. I think it will be a good addition, though will add several states to the widget. Currently the widget is either "ready" or "completed".

What you're suggesting is to add the "loading" state (with some sort of animation that is missing at the moment), as well as some handling of error (like what should happen if the API call fails?).

I'm leaving this open if someone wants to propose an implementation. I'm happy to discuss it/review it.

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

No branches or pull requests

2 participants