pierbezuhoff
11/09/2024, 5:19 PMViewModel.onCleared
from the multiplatform view model to save its state (via KStore), but it didn't work. I want to be able to load the same cached UI state on tab reloading from the Web Storage, what is the best way to go about it?Pablichjenkov
11/09/2024, 5:33 PMpierbezuhoff
11/09/2024, 6:00 PMChrimaeon
11/09/2024, 6:03 PMpierbezuhoff
11/09/2024, 6:11 PMPablichjenkov
11/09/2024, 6:20 PMpierbezuhoff
11/10/2024, 2:17 AMvisibilitychange
works perfectly, ty for help!
document.addEventListener("visibilitychange") {
if (document["hidden"] == true.toJsBoolean()) {
// save ui state
}
}