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 d09d324 commit cb3818aCopy full SHA for cb3818a
src/components/MainLayout/components/Cart.tsx
@@ -21,7 +21,7 @@ export default function Cart() {
21
).then(({ data: { data: { cart } } }) => {
22
dispatch(updateFromApi(cart))
23
});
24
- }, []);
+ }, [dispatch]);
25
const cartItems = useSelector(selectCartItems);
26
const badgeContent = cartItems.length || undefined;
27
0 commit comments