can I make a livedata observer in my viewmodel? or should I always observer in fragment/activity?
问题 I am new to MVVM. so I have 2 requests to the server from my fragment/activity, the result from the first request will be used as an input parameter for the second request. so first in my fragment, when a button is clicked then I make a request to check whether the user is banned or not, if not then this user can create a post. so first I check if a user is banned or not using this code in my fragment class CreateEventFragment : Fragment() { lateinit var model: CreateEventViewModel override