Colton Idle
10/04/2021, 7:02 PMAdrien de Sentenac
10/04/2021, 7:47 PMColton Idle
10/04/2021, 8:13 PMAdrien de Sentenac
10/04/2021, 8:14 PMColton Idle
10/04/2021, 8:33 PMAdrien de Sentenac
10/04/2021, 8:43 PMColton Idle
10/04/2021, 9:00 PMIan Lake
10/04/2021, 11:13 PMcurrentUser
Flow provided by your UserRepository
as its source of truth anyways?Colton Idle
10/05/2021, 1:16 AM@HiltViewModel
class HomeScreenViewModel
@Inject
constructor(
var service: ApiService,
private val appUserManager: AppUserManager
but my authToken is a state snapshot. I suppose that it shouldn't be a state snapshot and instead I need to learn how to use a Flowable here?
var authToken by mutableStateOf(...
Colton Idle
10/05/2021, 1:44 AMColton Idle
10/05/2021, 1:44 AMColton Idle
10/05/2021, 1:46 AMTin Tran
10/05/2021, 2:49 AMIan Lake
10/05/2021, 3:37 AMColton Idle
10/05/2021, 6:08 AMI would think that an explicit logout would also explicitly pop, yes.Hm. I wonder how I should shape this. I would explicitly popTo the login screen, but then the login screen would pop onSuccess and the user would be taken out of the app, no? Since my app is already setup like the "login" casestudy where the login screen always just pops on my network call success.
Colton Idle
10/05/2021, 7:36 PMColton Idle
10/05/2021, 7:45 PM