JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.36k stars 1.18k forks source link

Multiple configuration changes not tracked correctly when using qualifiers #4734

Closed zsmb13 closed 2 months ago

zsmb13 commented 7 months ago

Describe the bug

Sometimes the configuration changes I make are not taken into account immediately, and I get (partially) stuck with values from a previous configuration. I have a project here with strings set up in the values, values-dark, values-fr, values-fr-dark folders.

So far could only reproduce this on an emulator and not a real device.

Affected platforms

Versions

To Reproduce

In the video below, using this sample ResourcesDemo-issue (1).zip, I go from:

  1. Light, English -> Dark, French ✅
  2. Dark, French -> Light, English ❌ as this now shows Light, French resources (values-fr)
  3. Finally, going from English to French and to English again makes it update correctly.

Screenshots

https://github.com/JetBrains/compose-multiplatform/assets/12054216/a24a6e1e-8914-4af9-af8b-e03fb0710cbe

okushnikov commented 3 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.