Description
Items added to the cart are lost when the user refreshes the page. The cart state is held only in memory and not persisted.
Impact
- Users lose their selected items on accidental refresh
- Poor e-commerce UX
Suggested Fix
Persist cart state in localStorage or sessionStorage and restore it on page load.
Description
Items added to the cart are lost when the user refreshes the page. The cart state is held only in memory and not persisted.
Impact
Suggested Fix
Persist cart state in localStorage or sessionStorage and restore it on page load.