android-maps-compose icon indicating copy to clipboard operation
android-maps-compose copied to clipboard

Flag non-remembered State object creation

Open bubenheimer opened this issue 1 year ago • 1 comments

android-maps-compose 4.3.0

It appears that accidental misuse of android-maps-compose state objects like MarkerState without remember() is common. It would be nice to have the UI/Lint flag such usages.

bubenheimer avatar Jan 12 '24 18:01 bubenheimer

Compose Runtime 1.5.0 added StateFactoryMarker to flag these usages. However, it is only applicable to function calls, not constructor calls. android-maps-compose uses constructor calls for creating State objects.

I have created https://issuetracker.google.com/issues/318054171 to extend StateFactoryMarker to constructor calls. Please consider voting for this issue or promoting it in other ways.

bubenheimer avatar Jan 12 '24 18:01 bubenheimer

:tada: This issue has been resolved in version 6.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

googlemaps-bot avatar Jul 03 '24 15:07 googlemaps-bot