Skip to content

Execute Query on Button Click #2160

Answered by JoviDeCroock
T0miii asked this question in Q&A
Discussion options

You must be logged in to vote

That pattern is lined out here if you want to wait for it in the preview you are better off using the client by means of useClient and doing .query(variablesQuery, variables).toPromise(). Generally in React using the rerender pattern will provide you with more benefits 😅

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kitten
Comment options

You must be logged in to vote
0 replies
Comment options

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
2 participants