Replies: 1 comment 2 replies
-
Could you provide reproduction? It works fine for me. |
Beta Was this translation helpful? Give feedback.
2 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I get error
vue-query hooks can only be used inside setup() function or functions that support injection context
when trying to useùseQuery
inside<script setup>
.I investigated it a bit, and it seems that the error comes from
useBaseQuery
checking thatgetCurrentScope()
fromvue-demi
is not null or undefined. I checked thatgetCurrentScope()
is defined when importing it fromvue
, but not defined when imported fromvue-demi
.I install vue-query like this to my app:
In the documentation it says to use @vue/composition-api and createApp from it, but it's not used anymore with 2.7 so the documentation if probably bit outdated.
Question is: is there support for 2.7? And if there is, how should it be setup?
Beta Was this translation helpful? Give feedback.
All reactions