Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to disable query trigger in ApolloQuery component and call it programmatically based on some logic. #1470

Unanswered
jaybharadia asked this question in Q&A
Discussion options

Currently, behaviour is that query is hitting as soon as the component mounts.

You must be logged in to vote

Replies: 2 comments

Comment options

I got the solution

  • Use skip prop
  • Extract query slot scope
  • call query.start to programmatically call query.
You must be logged in to vote
0 replies
Comment options

In @vue/apollo-composable you can also use useLazyQuery

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /