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

Update ShopContext.jsx #425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

aditya9587
Copy link

Fixed the issue of clearing cart when the page get reload. #GSSOC'24

Title and Issue number

Title : BUG: Cart clears up automatically once page get refreshed.

Issue No. : #205

Close #205

Changes Made

  • I have change in the website to store the cart value when the page get refresh.
  • I made changes in the shopContext file using useEffect to Apply localStorage

Checklist

  • [ yes] I have tested these changes locally.
  • [ yes] I have reviewed the code and ensured it follows the project's coding standards.
  • [yes ] I have updated the documentation (if necessary).
  • [yes ] I have read the contributing guidelines.

Fixed the issue of clearing cart when the page get reload. #GSSOC'24
Copy link

vercel bot commented May 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shop-nex ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 6:13pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Cart clears up automatically once page get refreshed
1 participant