tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] Frontend reloads on wake after sleep in Windows 11

Open ottosson opened this issue 1 year ago • 8 comments

Describe the bug

When I put my computer to sleep and wake it up again all state has been lost on the frontend of my Tauri application. The page seems to be reloaded. The state is till available for the "backend" of my application.

Reproduction

On windows 11, start your Tauri app, then put the computer to sleep, then wake it up again. State on frontend is lost.

Expected behavior

No response

Platform and versions

[✔] Environment
    - OS: Windows 10.0.22621 X64
    ✔ WebView2: 119.0.2151.72
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - Visual Studio Professional 2022
    ✔ rustc: 1.74.0 (79e9716c9 2023-11-13)
    ✔ cargo: 1.74.0 (ecb9851af 2023-10-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.8.1
    - npm: 10.2.0

Stack trace

No response

Additional context

No response

ottosson avatar Nov 26 '23 15:11 ottosson