Closed ptitjes closed 2 months ago
@ptitjes Let's try to find more details.
I tried to reproduce the issue, but no luck so far. Here is a project I created with the code thar you provided https://github.com/eymar/repr_compose_2568
I even used
//compose.kotlinCompilerPlugin.set("androidx.compose.compiler:compiler:1.4.0-alpha02")
and
#kotlin.version=1.7.21
and the behaviour was correct (no appends)
Perhaps you could try this project and share your example on github? I'm wondering what's the difference.
OK. I will try it this evening. Thanks a lot for creating the project.
@ptitjes Did you have a chance to try it? :)
@eymar I am very sorry, I did not find time yet. I will try this weekend.
Same issue was with Kotlin 1.7.20 + Compose 1.2.1. Solved by updating compose to 1.2.2.
Repr project works fine with both versions. Looks like this bug depends on something more than only stylesheet.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
When using a stylesheet and an
if
statement, it seems that the recomposed content of theif
statement is prepended to the existing content rather replacing it.Screencast from 2022-12-19 18-13-40.webm
Tested on Kotlin 1.7.20 + Compose Multiplatform 1.2.2 (no compiler override).