Skip to content

After submitting a challenge, remove its code from browser's local storage #9115

@QuincyLarson

Description

@QuincyLarson

Our storage of incomplete code has caused a ton of confusion. Many campers switch browsers or devices, then visit a previously completed challenge only to think that "Free Code Camp has lost my code!"

The reason we store campers' code in a browser is to prevent them from losing this code if their browser crashes.

  • As a camper, once I submit a solution to a challenge, my stored solution should be removed from my browser's local storage so I next time I view this challenge.
  • As a camper, if I return to a challenge and a partial solution for that challenge is available in my local storage, it should load my partial solution (as it currently does). I should see a flash message that says "We have loaded your partial solution below. Good luck finishing and submitting it."

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedOpen for all. You do not need permission to work on these.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions