DEV Community

Discussion on: Is using localStorage for a guest shopping cart a bad idea?

Collapse
 
mrispoli24 profile image
Mike Rispoli

Ah this is an interesting. I was actually considering using Vue in a scaled down approach just for the cart and binding local storage to a global store to handle addition and removal from different components. It’s a very simple site rails site otherwist, so I wanted to take as light handed an approach as possible. I’ll be taking a look at localForage which might work out better.

Collapse
 
rhymes profile image
rhymes

You can do the same, localForage is just a wrapper on top of the variouses client storage options. Check if it's not too big for your app and if it fits your requirements, otherwise toss it :D