Does `rememberSaveable` save and restore across ap...
# compose-desktop
c
Does
rememberSaveable
save and restore across app invocations on desktop? Specifically my window size is not being remembered on MacOs, which it seems it should be since
rememberWindowState
delegates to
rememberSaveable
.
f
Related thread
c
The most pertinent part of that that I can see is "On desktop
remeberSaveable
is just the same as
remember
" which implies that state is not preserved across app invocations.
f
I don't really know the answer so I just tried searching for you because I know I've seen something about
remeberSaveable
😄
c
Sure, and thanks. It basically confirms the behaviour I observe. A pity...
d
You can setup a thing to save all saveables to disk if you want.
k
@Dominaezzz You mean with kotlinx.serialize?
d
Possibly. I meant using the save holder thing. I'll look it up later.
👍🏻 1
c
I assumed there was somewhere you could hook in to save stuff to disk, but a little browsing of the code left me clueless as to where. Any pointers would be appreciated.