Skip to content

Don't understand why I'm getting "Rendered fewer hooks than expected" #940

Answered by jmbldwn
jmbldwn asked this question in General
Discussion options

You must be logged in to vote

This turned out to be caused by a seemingly unrelated component, where i was passing in a function that used useQuery (not part of a component).

Makes me wonder if there's a way to root out places where we are violating the rules of hooks...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jmbldwn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant