WebIDE incorrectly displays blank file for file that isn't actually blank
Summary
I believe that there is a race-condition somewhere within the WebIDE that means that loading a file and switching "tabs" within quick succession causes the file to be displayed as "blank", even though it actually has contents. Only by closing the file and re-opening, or refreshing does the file contents return.
Steps to reproduce
Open the WebIDE in the "Edit" tab, click on a file and immediately click the "Review" tab before it finishes loading.
What is the current bug behavior?
Blank file is shown.
What is the expected correct behavior?
File contents should load, regardless of the "tab" switch.
Relevant logs and/or screenshots
They say a picture is worth a thousand words, so... how about a gif!?
Possible fixes
Looks like a race-condition to me!?
Edited by Himanshu Kapoor