-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flag non-remembered State object creation #506
Comments
Compose Runtime 1.5.0 added I have created https://issuetracker.google.com/issues/318054171 to extend |
…thout remember or similar mechanisms. The PR replaces public constructors on State objects with `invoke()` factory functions in public companion objects. `@StateFactoryMarker` can only be applied to functions, not constructors. The chosen constructor replacement approach minimizes the required refactoring impact on correct State object usages, requiring no refactoring in the vast majority of cases. Fixes googlemaps#506
…thout remember or similar mechanisms. The PR replaces public constructors on State objects with `invoke()` factory functions in public companion objects. `@StateFactoryMarker` can only be applied to functions, not constructors. The chosen constructor replacement approach minimizes the required refactoring impact on correct State object usages, requiring no refactoring in the vast majority of cases. Fixes googlemaps#506
# [6.0.0](v5.0.3...v6.0.0) (2024-07-03) ### Bug Fixes * fix release step ([#586](#586)) ([e5dc195](e5dc195)) * leverage `@StateFactoryMarker` to flag State object creation without remember or similar mechanisms. ([#516](#516)) ([9ed3f7a](9ed3f7a)), closes [#506](#506) * Return early in rememberComposeBitmapDescriptor for invalid view size ([#533](#533)) ([db97e65](db97e65)) ### BREAKING CHANGES * leverage @StateFactoryMarker to flag State object creation without remember or similar mechanisms Co-authored-by: Uli Bubenheimer <bubenheimer@users.noreply.github.com>
🎉 This issue has been resolved in version 6.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
android-maps-compose 4.3.0
It appears that accidental misuse of android-maps-compose state objects like
MarkerState
withoutremember()
is common. It would be nice to have the UI/Lint flag such usages.The text was updated successfully, but these errors were encountered: