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 e412796 commit 09d54fbCopy full SHA for 09d54fb
src/components/Header/Cart.component.tsx
@@ -33,8 +33,8 @@ const Cart: FC<ICartProps> = ({ stickyNav }) => {
33
fetchPolicy: 'cache-and-network',
34
});
35
36
- // Use query loading state in combination with store loading state
37
- const productCount = (!isLoading && !queryLoading) ? cart?.totalProductsCount : undefined;
+ // Show persisted cart quantity immediately, will be updated if query returns different data
+ const productCount = cart?.totalProductsCount;
38
39
return (
40
<>
0 commit comments