-
I want to persist some state from the frontend right before the app exits. It doesn't seem to be as easy as I expect. My initial attempt is simply create a Second attempt is to emit an message to frontend inside I got it work by preventing the
I assume we shouldn't call Is there a more standard way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you're handling the state from javascript and it has nothing to do with rust, simply handle it only on javasscript side:
https://bugs.chromium.org/p/chromium/issues/detail?id=113008 |
Beta Was this translation helpful? Give feedback.
If you're handling the state from javascript and it has nothing to do with rust, simply handle it only on javasscript side:
https://tauri.app/v1/api/js/classes/window.webviewwindow/#oncloserequested
https://bugs.chromium.org/p/chromium/issues/detail?id=113008
I wouldn't worry about it.