Skip to content
Discussion options

You must be logged in to vote

You are calling useQuery in an if statement, which violates the rules of hooks. Have a look at the select option, it should come in handy for data filtering

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rswerve
Comment options

@TkDodo
Comment options

@rswerve
Comment options

Answer selected by rswerve
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