0
Follow
0
View

Is it possible to create a new query using LiveData inside the onChanged method of .observe?

linyu3094 注册会员
2023-01-25 10:55

Without knowing or understanding your data models, it seems like you can just create another query function in your Dao and a function in your ViewModel to call it and update the associated LiveData. So perhaps you have ActiveGroups as another LiveData field?

About the Author

Question Info

Publish Time
2023-01-25 10:55
Update Time
2023-01-25 10:55