Result hook of smart query is called unexpectedly #1032
Unanswered
stefan-meier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
The result hook of my smart query A is called although none of the variables have changed. Also there is no polling interval set.
There is a second query in my Vue application that has its poll interval set to 5s. The result hook of query A is called when that second query fires and I have opened or closed the detail view of a row in a bootstrap table that displays the data of query A.
To Reproduce
My Vue app looks somewhat like this:
I did not include any code for the PersonDetails component, because it doesn't seem to matter. I get the same behaviour when I just put an empty div there.
But interestingly the problem does not occurr when I remove the
from the template tag.
Expected behavior
I would have expected the result hook to be called only when the result data changes (when variables have changed and the query is reexectuted or when the cache has been changed programtically).
Versions
vue: 2.6.11
vue-apollo: 3.0.3
apollo-client: 2.6.4
Additional context
Beta Was this translation helpful? Give feedback.
All reactions