Thread
#compose
    k

    Kaustubh Patange

    1 year ago
    Is there a way I can
    remember
    the value produced by a
    @Composable
    function that does not have a
    Unit
    return type?
    rnett

    rnett

    1 year ago
    Store it in a local, then remember the local? Not entirely sure that will work but it's worth a shot
    k

    Kaustubh Patange

    1 year ago
    Currently, that's what I'm doing but it feels like a hack. Maybe there could a better way?
    rajesh

    rajesh

    1 year ago
    You can use
    return remember(optional variable
    )
    {
      Your return value here
    }