Replies: 1 comment 9 replies
-
How are you getting the wagmigotchiABI? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all, I apologize if this is solely a react learning but I'm trying to learn to use Wagmi and following the documentation on useContractRead
I'm getting the invalid hook call but I can't figure it out why.
I want to have web elements that display the result of the read functions that I will call from the contract. In web3 native JS I can do this but with Wagmi + react I'm struggling to get why this error is happening. I tried moving the const into it's own function that's not uppercase, such as home() instead of using the Home() component.
Can someone give me a pointer?
Error:
Unhandled Runtime Error Error: Invalid hook call. Hooks can only be called inside of the body of a function component
Beta Was this translation helpful? Give feedback.
All reactions