Question about compose Dialogs - it seems they get...
# compose
f
Question about compose Dialogs - it seems they get recreated when moving app to background and come back. Is there anyway to prevent the re-creation during configuration change?
a
assuming you are talking about android: they dont do that. something else is killing your dialog, unless the system is killing your app (ie due to low available resources)
f
Yes, Android, sorry for lack of context. Nothing is killing the dialog, it just gets recreated. I will try to come up with a minimal example.
c
i think thats just how compose works? maybe im misremembering. but i think even a simple compose app that gets sent to background will get recomposed when brought back to front. actually. maybe that doesn't make sense. hm. ill have to give that a shot. lmao
f
Seems the issue is not the Dialog itself, but the WebView inside the Dialog. I know that we currently we can't save the state of WebView, but interestingly, when I use WebView in normal screen, put App in background and come back it doesn't refresh, unlike Dialog where it does refresh. So I was excepting the Dialog to re-create. I still don't understand why the normal screen wouldn't refresh, tho. Please let me know if you have an idea. 🙏