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

feat: create trigger onEmptyCart #129

Closed mariosantosdev closed 1 year ago

mariosantosdev commented 1 year ago

I guess it would be useful in some cases like show a confirm toast after clear the cart.

Reference: https://github.com/notrab/react-use-cart/issues/126

notrab commented 1 year ago

Hey @mariosantosdev

Thanks so much for adding this. Looks great!

I'd be happy to merge this ASAP and release it if you are able to add a quick test similar to this one.

mariosantosdev commented 1 year ago

Hey @mariosantosdev

Thanks so much for adding this. Looks great!

I'd be happy to merge this ASAP and release it if you are able to add a quick test similar to this one.

Sure, I did just now!

github-actions[bot] commented 3 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: