You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intermittent weird issues with the "Save" button for programs and studies. #58
Sometimes, the "Save" button (for both studies and programs) expect to be clicked thrice to save a program or a study.
Once, it threw a "Switch to Edge/Chrome!" while I was trying to save a program on Chrome on MacOS. The cache is cleared.
changed the title [-]Intermittent weird issues with the "Save" button[/-][+]Intermittent weird issues with the "Save" button for programs and studies.[/+]on Nov 3, 2022
This is unexpected behaviour. However, I believe it is due to the time it takes to detect which browser you're using.
As soon as it detects the user is using Chrome, it replaces the old version "Upload directory" button with the new version button. This process is almost instantaneous (making use of useEffect in React).
But sometimes, due to unforeseen reasons, this update may take a little longer and thus, in between, if the user clicks the button, it defaults to the firefox behaviour.
I will perform more testing and look for a workaround; in the general case, it won't happen however.
Activity
[-]Intermittent weird issues with the "Save" button[/-][+]Intermittent weird issues with the "Save" button for programs and studies.[/+]Aviral09 commentedon Nov 3, 2022
This is unexpected behaviour. However, I believe it is due to the time it takes to detect which browser you're using.
As soon as it detects the user is using Chrome, it replaces the old version "Upload directory" button with the new version button. This process is almost instantaneous (making use of useEffect in React).
But sometimes, due to unforeseen reasons, this update may take a little longer and thus, in between, if the user clicks the button, it defaults to the firefox behaviour.
I will perform more testing and look for a workaround; in the general case, it won't happen however.
parteekcoder commentedon Feb 6, 2023
@pradeeban is this issue still opened or closed as there is a PR for this
pradeeban commentedon Feb 7, 2023
This is still open.
parteekcoder commentedon Feb 7, 2023
@pradeeban i have a created a PR for this issue and now it is correctly saving files
Actually the issue was in save function graph donot have fileHandle key so that's why entering else section
parteekcoder commentedon Feb 7, 2023
@pradeeban added all extensions and now you can check
parteekcoder commentedon Feb 10, 2023
hey @pradeeban please review now , it is working on all browser
pradeeban commentedon Feb 10, 2023
It is confusing what is going on here. @Aviral09 implemented this for Chrome and it works fine except for intermittent issues on Chrome.
@Aviral09 pls review @parteekcoder's pull request if you have time.
Aviral09 commentedon Feb 11, 2023
Okay I will review the same.
parteekcoder commentedon Feb 11, 2023
hey @Aviral09 please tell me what's wrong so that I can correct , you can fork my branch and check after deploy
pradeeban commentedon Feb 25, 2023
Couldn't reproduce as lately with @Rahuljagwani's fixes #103. Closing as "Cannot reproduce" for now.