<Executing a callback only when reaching a certain...
# stackoverflow
u
Executing a callback only when reaching a certain state without user interactions Our app receives a notification with a PendingIntent that when clicked, opens the following screen: @Composable fun IntermediateMonthlyBillings( onDataAcquired: (AllStatementsByYear) -> Unit, myEwayLoggedInViewModel: MyEwayLoggedInViewModel = get() ) { val statementsByYear by myEwayLoggedInViewModel.statementsByYear.observeAsState(null) if (statementsByYear == null) { GenericLoader(type = MyLoaderType.LIGHT_BACKGROUND) } else { Button(onClick = {...