Query data and fill a form with that data #190
-
I'm trying to fill an Edit form with that from the vue-query. Should I use a watch to see when the |
Beta Was this translation helpful? Give feedback.
Answered by
DamianOsipiuk
May 24, 2022
Replies: 1 comment 6 replies
-
That depends on what UX you want to achieve and what form would you use (library or native elements).
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
ebisbe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That depends on what UX you want to achieve and what form would you use (library or native elements).
Basically you have to options:
v-if
to check when data is available and display some fallback otherwise, like a spinner (similar to examples)computed
to get data or fallback if data is empty, like empty object. Then you can just use computed value in the template withoutv-if