According to the doc, we can pass a reactive pause input to useQuery. Yet, the pause status of the query does not update when the reference's value changes. I have linked a StackBlitz with the following example from the doc:
You can see that the query stays on pause (it does not fetch and the property isPaused is indeed staying to true) even when shouldPause's value is switched to false. On the other hand, if you start with const shouldPause = ref(true);, then the query never pauses.
Describe the bug
According to the doc, we can pass a reactive
pause
input touseQuery
. Yet, the pause status of the query does not update when the reference's value changes. I have linked a StackBlitz with the following example from the doc:You can see that the query stays on pause (it does not fetch and the property
isPaused
is indeed staying totrue
) even whenshouldPause
's value is switched tofalse
. On the other hand, if you start withconst shouldPause = ref(true);
, then the query never pauses.Reproduction
https://stackblitz.com/edit/github-uroxw1?file=src%2FPokemonList.vue
Urql version
@urql/vue: 1.2.0
Validations