Description
Describe the bug
Updating variables does not trigger refetching data in vue-composable as described here: https://v4.apollo.vuejs.org/guide-composable/query.html#variables-ref.
I tried updating value of variable by extracting variables from the query const { result, variables } = useQuery(
, passing "ref" and "reactive" variables, but nothing seems to be triggering update.
It works well with Options API and Vue Components but not with Composition API.
To Reproduce
I created a sandbox :https://codesandbox.io/s/vue-composable-variables-problem-ozxjf?file=/src/components/Pokemon.vue .
There is an input field and button that triggers updating variable that was passed to query.
Variable updates correctly, but nothing happens with the query.
Expected behavior
When changing variables, query should be refetched and new results should be displayed.
Versions
vue: 2.6.11
@vue/apollo-composable: 4.0.0-alpha.8
apollo-boost: 0.4.7
Additional context
Add any other context about the problem here.