Equivalent to SWR's mutate? #509
Answered
by
jxom
RichHorrocks
asked this question in
Q&A
-
I'm looking at converting my app to use Wagmi instead of SWR. (I've used both vanilla SWR and the eth-swr package.) I'm looking for a way to mimic the mutate feature of SWR, such that on receiving an event, the Is there a clean way of doing this? |
Beta Was this translation helpful? Give feedback.
Answered by
jxom
May 26, 2022
Replies: 1 comment 1 reply
-
Can you utilise |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tmm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you utilise
refetch
in the return values ofuseContractRead
, and place that in your event listener?https://wagmi.sh/docs/hooks/useContractRead#return-value