-
Notifications
You must be signed in to change notification settings - Fork 134
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
Question #4
Comments
I think we can do it with LiveData Transformations. You listen to the changes in the post body and when the body changes Transformation.switchMap() will trigger and it will call the Repository method inside it. There are examples in the Google's advance github browser repo on GitHub. |
you can do some thing like this
|
I think I have the same problem, I asked a question on stackoverflow |
|
Hello, I did a post like this and it's working fine so far: //call
//observer
//remember to remove observer
//Repository
//Strategy utils
*Notice we don\t listen to success on commitChangesObserver since live data is already being observed (also with observefovever on the viewmodel, whish is also removed oncleared() ) |
sorry it's not an issue, but i really need help for POST method, how can do POST in viewmodel? if i have username and password
The text was updated successfully, but these errors were encountered: