-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
useLazyQuery, load hook and refetch hook will execute together after the initial load hook was executed and second execution with the same variable #12137
Comments
Although the code is in vue.js but I think the issues is within the load() hook, on second execution of the useLazyQuery() with the same variable if the load hook return false it shouldn't continue to execute the query and just let refetch hook do. |
I'm sorry, but you might be in the wrong repo - this is the Apollo Client core. |
thanks for pointing out. Will close the issue. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
The code is in vue.js.
I have created a composition function of car.
Created a button which execute the composite function. the input value is 1.
Following is my onResult
Link to Reproduction
Reproduction Steps
Expected behavior
By looking at the document
useLazyQuery
My expected behavior is that on the second time when I click the button, useLazyQuery return a false and we should only execute the refetch() as per the document
@apollo/client
version3.11.10
The text was updated successfully, but these errors were encountered: