notrab / react-use-cart

React hook library for managing cart state
http://npm.im/react-use-cart
Apache License 2.0
367 stars 48 forks source link

Make local storage optional #31

Closed notrab closed 4 years ago

notrab commented 4 years ago

By default we assume people want to persist their cart with localStorage.

While this is probably ok for most, we should probably the ability for anyone to overwrite the getter/setter methods on that.

Simply by passing a storage prop would work on the CartProvider constructor.

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 1.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: