phcode-dev / phoenix

Phoenix is a modern open-source Code Editor for the web, built for the browser.
https://phcode.io
GNU Affero General Public License v3.0
1.78k stars 124 forks source link

Live Preview Stops Working After Resuming from Sleep Mode on Windows—Requires Manual Refresh #1830

Open devvaannsh opened 2 months ago

devvaannsh commented 2 months ago

Describe the bug

After resuming the device from Sleep mode, the Live Preview feature in Phoenix Code Editor becomes unresponsive. The preview no longer updates automatically, and the user must manually refresh the Live Preview to restore functionality.

Reproduction

  1. Open Phoenix Code Editor (on a Windows machine).
  2. Enable Live Preview.
  3. Put the device into Sleep mode.
  4. Resume the device from Sleep mode.
  5. Notice that Live Preview is no longer working.

Expected behavior

Live Preview should automatically resume and function normally after waking the device from Sleep mode, without requiring a manual refresh.

OS, Browser and Phoenix versions

OS :- Windows 11 (version 23H2) Phoenix Version :- Release 3.9 build 3.9.1-20553 build timestamp: 2024-09-06T07:44:35.003Z

logs or debug stack trace if any

No response

Additional context

No response