You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation where I am using Vue Apollo to do some form validations, such as checking an existing username. Should I be using useQuery or useLazyQuery in this situation?
I am currently using useLazyQuery because I am waiting for user input before validations, but I have seen some React users use useQuery during validation, so which one would be right for the job? Or is it just a matter of choice?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a situation where I am using Vue Apollo to do some form validations, such as checking an existing username. Should I be using
useQuery
oruseLazyQuery
in this situation?I am currently using
useLazyQuery
because I am waiting for user input before validations, but I have seen some React users useuseQuery
during validation, so which one would be right for the job? Or is it just a matter of choice?Beta Was this translation helpful? Give feedback.
All reactions