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 ๐ฆ๐