Hi, I integrate Google Map in one of Compose Scree...
# compose
a
Hi, I integrate Google Map in one of Compose Screen but it's freeze for a bit of time, Is there any solution to prevent blocking the UI ? the freezing is because I use :
Copy code
val mapView = rememberMapViewWithLifecycle()
b
Show a loading indicator until the map widget is ready? This is working under the assumption that the map widget is actually freezing as opposed to the entire app.
Also double check that you're not doing any IO on main thread to load it
a
yes, that looks a great solution, but I wander how to check if the map widget is ready or not ? 🤔
b
Browse the docs. I'm not familiar with that api so can't comment more. Just spitballing ideas here 😀
a
yes I will, thank you
b
Good luck!