phoenix
phoenix copied to clipboard
File recovery behaves unexpectedly on project switch
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.
- 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.
Reproduction
No response
Expected behavior
- the live preview should be not messed up on project switch
- 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
Not an issue in native builds. So removing from native builds project.