nuhkoca
01/02/2023, 7:47 PMViewModel
in return of text click and subscribe the output in composable function as follows;
val url by viewModel.output.url.subscribeAsState(initial = null)
However, since the url is always the same string, only the first click opens browser, subsequent ones don’t do anything due to subscribeAsState
How do I make this work properly for identical strings?Zach Klippenstein (he/him) [MOD]
01/02/2023, 8:21 PMZach Klippenstein (he/him) [MOD]
01/02/2023, 8:22 PMurl
observable explicitly and open the browser there.nuhkoca
01/02/2023, 9:32 PMsubscribeAsState
yschimke
01/02/2023, 10:43 PMyschimke
01/02/2023, 10:44 PMnuhkoca
01/03/2023, 3:11 PM