Closed notrab closed 4 years ago
By default we assume people want to persist their cart with localStorage.
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.
storage
CartProvider
:tada: This issue has been resolved in version 1.6.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
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 theCartProvider
constructor.