phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

File recovery behaves unexpectedly on project switch

Open abose opened this issue 1 year ago • 1 comments

Describe the bug

  • Go to the incognito Window in edge
  • in default project index.html file, add a hi to heading to make <h1>Phoenix hi</h1>
  • now switch project without saving. you will see index.html listed twice inconsistently instead of only once.When switching projects without saving, the file listing should only display "index.html" once. image
  • Now switch back to default project. you will see that the live preview is messed up. The code however is not corrupted. This most likely is due to the live document holding on to some stale values in staticServer. image

Reproduction

No response

Expected behavior

  1. the live preview should be not messed up on project switch
  2. there should be only one changed file listed in the save unsaved files dialogue without listing duplicates.

OS, Browser and Phoenix versions

all

logs or debug stack trace if any

No response

Additional context

No response

abose avatar Jun 30 '23 06:06 abose

Not an issue in native builds. So removing from native builds project.

abose avatar Feb 26 '24 06:02 abose