Thread
#compose
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    Is there anyway to write to/read from the saved instance state from a Compose function - like some kind of ambient or something that provides hooks for that?
    r

    Ryan Mentley

    2 years ago
    Not currently. There's not exactly a single saved instance state - Views have their own, Fragments have their own, Activitys have their own... you could easily create the Ambients yourself and wrap your content in them (or just pass it in as a parameter, depending on what you're doing).
    (for reading)
    we want to do something to make this easier
    solution TBD though
    Adam Powell

    Adam Powell

    2 years ago
    It's likely going to be based on the incoming ViewModel/SavedStateHandle stuff coming into arch components
    At least under the hood