woocommerce-blocks icon indicating copy to clipboard operation
woocommerce-blocks copied to clipboard

`useStoreEvents` hook should not trigger fetch request to `/wc/store/cart`

Open gigitux opened this issue 3 years ago • 2 comments

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.

gigitux avatar Feb 10 '22 09:02 gigitux

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.

github-actions[bot] avatar Apr 12 '22 09:04 github-actions[bot]

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.

github-actions[bot] avatar Aug 03 '22 09:08 github-actions[bot]