How to use UseQuery to assign value to a pre-defined variable? #6395
Replies: 1 comment 4 replies
-
Why would you need this? |
Beta Was this translation helpful? Give feedback.
4 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.
-
Hi I'm a vue3 & vue-query newbie
I understand the normal assignment would be
const { data: name_of_your_variable } = UseQuery({});
but suppose I have a pre-existing variable
I don't think I can do the following
I'm looking to change the value of the variable via
name_of_my_variable.value =
Suppose the following scenario
How do I assign the currencyRate grabbed from useQuery to quote.value.currencyRate?
Beta Was this translation helpful? Give feedback.
All reactions