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
15.9k stars 1.16k forks source link

the state will be lost when using desktop Compose in the toolwindow of the idea plugin #3191

Open whataa opened 1 year ago

whataa commented 1 year ago

Describe the bug

Affected platforms

Versions

To Reproduce

  1. create a sample idea plugin project, setup compose dependencies
  2. write some @Composable UI, use mutablestate variable and modify it when clicked for example
  3. add one toolwindow and put the composeUI into it
  4. open toolwindow and modify mutablestate, then hide and reopen the toolwindow

You will find that the state of @composable UI is reset

okushnikov commented 2 weeks ago

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