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
b
Brett May
07/31/2021, 1:59 AM
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.
Brett May
07/31/2021, 2:06 AM
divid3d I think you are correct, looking at that link seems to fit with what I want to do.