notrab / react-use-cart

React hook library for managing cart state

Home Page:http://npm.im/react-use-cart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make local storage optional

notrab opened this issue ยท comments

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.

๐ŸŽ‰ This issue has been resolved in version 1.6.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€