You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, AsyncImagePainter uses Dispatchers.Main.immediate. This normally works fine but during Paparazzi screenshot tests they use a custom dispatcher for composables to synchronize time.
Describe the solution you'd like
If possible AsyncImagePainter should use rememberCoroutineScope instead.
The text was updated successfully, but these errors were encountered:
Will this change fix the issue on jvm("desktop") since there is no Dispatchers.Main there?
Currently, AsyncImage throws an error on desktop: module with the main dispatcher had failed to initialize
It's good to use the same context or scope used inside the composer, or use Dispatchers.Swing for desktop instead of main
@colinrtwhite Thank you, I already added swing but still getting the error, it seems like some other library is overriding the main dispatched, will look into it.
Is your feature request related to a problem? Please describe.
Currently,
AsyncImagePainter
usesDispatchers.Main.immediate
. This normally works fine but during Paparazzi screenshot tests they use a custom dispatcher for composables to synchronize time.Describe the solution you'd like
If possible
AsyncImagePainter
should userememberCoroutineScope
instead.The text was updated successfully, but these errors were encountered: