Problem vue-query hooks can only be used inside setup() function.
I wrap
useQuery inside the arrow function to pass variables , and the function is to be triggered by button via v-on. However, clicking the button only leads to the error message: Uncaught Error: vue-query hooks can only be used inside setup() function. So my questions are:1. Is it prohibited to call
useQuery in functions that are not immediately executed in Vue setup function?2. Is there other workaround to pass variable into
useQuery?