Skip to content

useContract or useContractWrite #262

Answered by tmm
Hussainzz asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend useContractWrite and useContractRead. They are allow declarative access to these methods instead of needs to manage state and errors yourself. In the next version of wagmi, there will also be some caching improvements for useReadContract as well as broader finite state changes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hussainzz
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