Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

As per the TSDocs/TypeScript typings and our docs, executeQuery is not a state setter and does not accept variables. It accepts an OperationContext object:

This is also not a pattern that makes much sense.
Either, you need to track your variables in state, and update that state, as it's an input to useQuery, or, if you're doing programmatic queries, you can use the Client directly (e.g. via useClient)

As per the issue template, I'm converting this to a discussion, since it's a usage issue/question

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JoviDeCroock
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
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3468 on December 20, 2023 13:13.