Why doesn't viewmodel observe in sequence?
The LoginActivity has two observe viewmodels; one user login, the other one fetches data from the cart, and below the two observe viewmodels, I have Toast to show the message "Finish." I am wondering why, when I click the login button, it shows the message "Finish." It should show "Login successful." Why not execute them sequentially? I want to execute code login, then check if the user is logged in, and then retrieve the cart item that the user added to the cart from the API using retrofit....