Issue with losing code after logging in on multiple devices

I recently encountered an issue with my freeCodeCamp projects. I was logged in on my PC and decided to continue learning on my phone. While using my account on the phone, I noticed that all the code I wrote on my PC for previously completed projects disappeared, even though my progress shows as completed. I did not log out on the PC, so I was surprised that the code was cleared.

This has caused me to lose the actual code I wrote, even though the completion status remains. I would like to know if there’s a way to recover my lost code, or if there are recommended steps to prevent this from happening in the future.

Thank you for your help.

freeCodeCamp cannot store all the code written by every user for every Step, workshop, and project. That’s way too much data. We only store code from individual certification projects.

Any other code may be stored to your local browser cache on some parts of the curriculum, but that is, by design, restricted to the browser where you did the work.

Thank you for the explanation. I completely understand that storing code for every user isn’t currently possible and that only certificate progress is saved. However, I think it would be very helpful if a short warning or notice appeared each time someone is about to start coding in a Lab project. This would make users aware that their progress might not be saved, especially since the feature is still in beta.

In my case, I never had to log out before, so I never saw the warning that only appears during sign-out. That’s why having a reminder when starting or working on a Lab project could really prevent others from accidentally losing their work as well.

Thanks again for your time and for all the great work you’re doing with the platform!

when you run the tests in a lab, or when you use Ctrl + S, code is saved to the local storage of your browser.

It is not a feature of the new curriculum, code has not been saved to the database for a long while

You can open an issue on github if you want to suggest a warning that the code is not saved