Is it necessary to remember stuff inside the `appl...
# compose-desktop
g
Is it necessary to remember stuff inside the
application
block? For example
Copy code
application {
    val settingsStorage = remember {
        OfflineSettingsStorage()
    }
    Window(
        title = "ZenBreak settings"
    ) {
        MainView(// Params...)
    }
When does the application block recompose? And is it safe if we use remember then?
l
It recomposes when a state of a window or the tray changes. And yes it is safe to
remember
inside the block. But keep in mind that do not write any animation.
👍🏻 1