Lilly
03/08/2021, 7:35 PM@Composable
fun DsdScreen(
device: BluetoothDevice,
presenter: DsdPresenter,
onUp: () -> Unit,
content: @Composable (PaddingValues, Int) -> Unit
) {}
which forces me to rethink this decision. My idea is to instantiate the DsdPresenter
when calling the screen and pass the device to the presenter...
What advantages do I get by scoping view model to screen instead of using it as singleton?
Edit: I'm not using jetpack compose-navigation.