Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear cache after submitting article #37

Open
Harshal141 opened this issue Oct 4, 2024 · 2 comments
Open

Clear cache after submitting article #37

Harshal141 opened this issue Oct 4, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Harshal141
Copy link
Contributor

Problem:
While writing an article, the content is stored in localStorage to prevent data loss in case the tab is closed or an error occurs. However, the cached content persists even after the article is successfully submitted.

Solution:
Clear the cached content from localStorage once the user successfully submits the article to prevent old data from persisting unnecessarily.

@Harshal141 Harshal141 added bug Something isn't working good first issue Good for newcomers labels Oct 4, 2024
@Bharathhh30
Copy link
Contributor

Where can i find cache content in the code base

@Harshal141
Copy link
Contributor Author

In the write articles page the content is temporarily stored in the localStorage, but it should be removed once the article is successfully submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants