-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unnecessary request for anonymous cart and account cart #701
Comments
As apollographql/apollo-client#6572 v3.0.0 stable was released 4 hours ago, will check if that maybe contains a fix already. |
@janus-reith sounds good and thank you for checking. And looks like this PR might be related to this issue: apollographql/apollo-client#6589 |
@willopez Yes I was thinking the same thing when I noticed it. Looking at the code, that itself probably won't solve it as the logic regarding |
Type: minor
Describe the bug
On a clean installation, request for the anonymous cart and account cart will be executed even though, they are explicitly directed not to by the
skip
param. This is a known issue with Apollo Client, apollographql/react-apollo#3492. Revisit this after Apollo Client v3 is released and hopefully fixed.To Reproduce
Steps to reproduce the behavior:
Expected behavior
This query should not execute on first executed until a user clicks on the "add to cart" button. See, https://github.com/reactioncommerce/example-storefront/blob/trunk/hooks/cart/useCart.js#L50 for details.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: