dayhaysoos / use-shopping-cart

Shopping cart state and logic for Stripe
MIT License
907 stars 118 forks source link

(core): Add handleOpenCart API #255

Closed ehowey closed 1 year ago

ehowey commented 2 years ago

Hello!

DRAFT - Work in Progress

Feel free to quash this request but I was working on a project recently and I specifically wanted to have an ability open the cart, and not just toggle it.

I copy-pasted the code for handleCloseCart and created handleOpenCart.

I have no idea how to test this inside of the repo - but would love to know how to do that so I can help out more in the future. Let me know if this is something that is useful and I will spend a bit more time making sure it actually works as intended.

netlify[bot] commented 2 years ago

👷 Deploy request for useshoppingcart pending review. Visit the deploys page to approve it

🔨 Explore the source changes: a5b40ca7a81d351bc065fa6154f2aee118fad37c

dayhaysoos commented 2 years ago

I think I should probably set up some instructions so that you can set test things in the repo yourself! Just gimme a bit to walk through the steps from scratch to make sure things will workout no problem. This would probably work with no issues, though. I don't think I've written test for these either. I'll get back to you about this soon!