Skip to content

Update ShopContext.jsx - #425

Open
aditya9587 wants to merge 1 commit into
JiyaGupta-cs:masterfrom
aditya9587:master
Open

Update ShopContext.jsx#425
aditya9587 wants to merge 1 commit into
JiyaGupta-cs:masterfrom
aditya9587:master

Conversation

@aditya9587

Copy link
Copy Markdown

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
@vercel

vercel Bot commented May 28, 2024

Copy link
Copy Markdown

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