notrab / react-use-cart

React hook library for managing cart state

Home Page:http://npm.im/react-use-cart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emptyCart() navigate the user to cart page

hazem-saeed opened this issue · comments

I'm using the package in my next.js project. When the user clicks the send button to complete their purchase, I added emptyCart() after the order is creation success. But emptyCart() navigates the user to the cart page!

I checked the function, but I found nothing of that behavior in the package.

Can you please check it out, and tell me how to override this?

Thanks

Hey @hazem-saeed

This has to be something specific to your code base. There's nothing in the package that does any routing.