We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d571f8 commit dc66bd8Copy full SHA for dc66bd8
src/components/cart/cart-item.js
@@ -15,6 +15,8 @@ const CartItem = ( {
15
const productImg = item?.data?.images?.[0] ?? '';
16
17
/**
18
+ * Do not allow state update on an unmounted component.
19
+ *
20
* isMounted is used so that we can set it's value to false
21
* when the component is unmounted.
22
* This is done so that setState ( e.g setRemovingProduct ) in asynchronous calls
0 commit comments