-
Notifications
You must be signed in to change notification settings - Fork 186
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
How to handle retry request? #5
Comments
Hi @fjr619 |
with this approach how we trigger that from button in activity or fragment? |
@fjr619 no problem,
Let me know if it works for you. |
so i create a function for observe in activity
then in my activity will become
is it correct? |
@fjr619 yes, I assume you have everything initialized and injected as per the project. |
my other question, i assume with MVVM it will resolve change orientation problem, but when i rotate my phone, it will trigger calling API again, how to solved it? I read that in ViewModel we can use
to solve the problem, it doesn't with LEGO-Catalog example pattern |
with this pattern, it is really easy to use, but i have a problem to retry call API when got error, because we already have livedata in repository and calling api in datasource, how we can get retry request with this pattern?
The text was updated successfully, but these errors were encountered: