woocommerce-blocks
woocommerce-blocks copied to clipboard
`useStoreEvents` hook should not trigger fetch request to `/wc/store/cart`
Describe the bug
While I worked on #5729, I discovered that the hook useStoreEvents
(code) invokes the hook useStoreCart
that does a fetch request to the endpoint /wc/store/cart
. We should refactor this part of the code because I think we should avoid that a hook for tracking events does a fetch request to an endpoint.
This issue has been marked as stale
because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.
Internal: After 10 days with no activity this issue will be automatically be closed.
This issue has been marked as stale
because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.