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

How Can i disable Storage In LocalStorage ? #79

Closed ghost closed 3 years ago

notrab commented 3 years ago

You could provide a custom storage prop to the CartProvider that returns a function that does nothing for the getter/setters.

ghost commented 3 years ago

can you provide me a sandbox example that could be Helpful.