Daniel
05/28/2021, 2:18 PMLaunchedEffect(mapbox) {
val scope = this
val map = mapbox.awaitMap();
map.addOnCameraIdleListener {
Timber.i("This is called")
scope.launch {
Timber.i("This is never called")
repo.setMapPosition(map.cameraPosition)
}
}
Timber.i("This is also called")
}
Zach Klippenstein (he/him) [MOD]
05/28/2021, 2:28 PMZach Klippenstein (he/him) [MOD]
05/28/2021, 2:29 PMrememberCoroutineScope
, but I don’t think that’s the right tool here.Daniel
05/28/2021, 2:29 PM