zashi-android icon indicating copy to clipboard operation
zashi-android copied to clipboard

Consider using `@Stable` annotation in composes

Open HonzaR opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

The @Stable annotation informs the Compose compiler that the type or function it's applied to produces the same result if the inputs are the same. In simpler terms, it suggests that the object's properties do not change unexpectedly.

Describe the solution you'd like

One possible use-case is: ReceiveView.QrCode()

Alternatives you've considered

Additional context

https://developer.android.com/reference/kotlin/androidx/compose/runtime/Stable

https://medium.com/@naeem0313/optimizing-jetpack-compose-with-stable-smart-recomposition-strategies-c3180df7ae8d

HonzaR avatar Jan 09 '24 06:01 HonzaR