I was wondering if it is possible to use MutableStateOf with a Delegates.observable ? I want to know inside my ViewModel() subclass when my MutableState variable changes. I am looking for an equivalent of the following SwiftUI code:
Can you say a bit more about the specific use case? There are a few different tools or patterns available depending on the data flow you're looking to create
1 year ago
Sure, externally to AuthenticatedUser I want the UI to redraw when the meInformation updates (info about the current user, including purchase info), internally when meInformation is updated I want this class to write this information to the sharedPreferences.
divid3d I think you are correct, looking at that link seems to fit with what I want to do.