Our app is using React + Wagmi + prepare hooks.
One MetaMask user had an issue where their transaction completed successfully, but DoThisThing
was never called. Code is simplified, but wondering if anyone has experienced Wagmi + MetaMask broadcasting a successful transaction while not returning the hash and/or isSuccess. Is this possible?
const { data, isSuccess, sendTransaction } = useSendTransaction(config);
...
useEffect(() => {
if (isSuccess && data?.hash) {
DoThisThing({ hash: data.hash });
}
}, [data?.hash, isSuccess]);