DEV Community

Discussion on: Invalid hook call. Hooks can only be called inside of the body of a function component. ??

Collapse
 
jackmellis profile image
Jack

Looks like your list products function is doing something, but you haven't listed it here...

Collapse
 
gurupal profile image
Gurupal Singh

updated the question. I have added the list product actions in which i am using useQuery to get data from graphql