Replies: 1 comment
-
So I was interested in this as well and went a bit digging in the code. You probably might have already found the answer to this, but in case someone else might find this issue like me, here we go. Disclaimer: I'm just starting with vue-apollo and apollo and thus I'm no expert. As far as I can tell The refresh function on the other hand stops any on-going querying. And then partially recreates the query and executes it. This means that if you use a reactive query definition it will execute that function again before fetching the data. The same goes for reactive parameters. If a result can be loaded fast enough via apollo the loading property never will be set to true. Since |
Beta Was this translation helpful? Give feedback.
-
Title speaks for itself. When I do a
refetch
on a query it will not change a possible$apollo.queries[queryName].loading === false
totrue
. In contrary this is the case withrefresh
. So what exactly is the technical difference between the two.#36 (comment) states that refetch is the new refresh. But I do not believe that to be correct since they behave different and are also stated separately in the docs. (refetch, refresh).
I would love to hear the exact difference between the two :)
Beta Was this translation helpful? Give feedback.
All reactions