Calf is a library that allows you to easily create adaptive UIs and access platform specific APIs with Compose Multiplatform (Adaptive UI, File Picker, WebView, Permissions...).
A simple withContext(Dispatchers.Main) { solves it, but I don't want to open a PR until I'm sure it is wanted for it to be on the main thread or is something up to the user.
Not sure if this is not the expected behaviour, but for some reason
PHPicker
is not invoking the callback function in the main thread.A simple
withContext(Dispatchers.Main) {
solves it, but I don't want to open a PR until I'm sure it is wanted for it to be on the main thread or is something up to the user.