How to properly init web3wallet event listeners in React app? #3794
-
What is the best way to initialize & format the I've been playing around with the Below is the MRE that I am playing with. The event listener for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, you should run events either outside components or inside a useEffect hook. React components get re-rendered when a state changes, which is making you event functions being called multiple times. |
Beta Was this translation helpful? Give feedback.
Hi, you should run events either outside components or inside a useEffect hook. React components get re-rendered when a state changes, which is making you event functions being called multiple times.