You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In activity by viewModel() is not working properly, the invalidate() method doesn't callback when the viewLifecycleOwner is started, viewModel() is missing the postInvalidate() logic like activityViewModel(), please tell me how should I do it in activity.
Can I modify the viewModel() code like this:
invalidate function has comment: "Override this to handle any state changes from MavericksViewModels created through Mavericks Fragment delegates." so this method is just used in Fragment class.
If you want to observe state change in Activity, you can use :
In activity by viewModel() is not working properly, the invalidate() method doesn't callback when the viewLifecycleOwner is started, viewModel() is missing the postInvalidate() logic like activityViewModel(), please tell me how should I do it in activity.
Can I modify the viewModel() code like this:
The text was updated successfully, but these errors were encountered: