zashi-android
zashi-android copied to clipboard
Consider using `@Stable` annotation in composes
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