icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.04k stars 118 forks source link

Resource class not marked as Stable #456

Open Nailik opened 1 year ago

Nailik commented 1 year ago

While evaluating compose performance i found that StringResource is not considered stable in compose unstable text: StringResource. This should be fixed to improve compose performance. More information can be found here: https://github.com/androidx/androidx/blob/androidx-main/compose/compiler/design/compiler-metrics.md.

Adding the @Stable annotation in the generated files should help to fix this issue.

Nailik commented 9 months ago

@Alex009 with kotlinx.collections.immutable 3.6.0 there is now finally support for all architectures therefore i think this could be done in the next release