react-ecommerce icon indicating copy to clipboard operation
react-ecommerce copied to clipboard

Cart Persistence on Refresh

Open sbmsr opened this issue 3 years ago • 0 comments

Description

We would like to persist a customer's cart on refresh. This means we need to store their cart in a persistent browser storage. Check out the localStorage API to build this enhancement.

How to Reproduce

  1. Run app locally
  2. add item to cart
  3. Refresh page
  4. see that cart is empty

https://user-images.githubusercontent.com/2349518/166158707-5330e28e-94e9-4aeb-899f-ddddf45719e9.mp4

Deliverables

  • [ ] Cart is persisted when user does refresh

sbmsr avatar May 01 '22 18:05 sbmsr