Is there a way I can `remember` the value produced...
# compose
k
Is there a way I can
remember
the value produced by a
@Composable
function that does not have a
Unit
return type?
r
Store it in a local, then remember the local? Not entirely sure that will work but it's worth a shot
k
Currently, that's what I'm doing but it feels like a hack. Maybe there could a better way?
r
You can use
return remember(optional variable
)
Copy code
{
  Your return value here
}
👍 1