Skip to content

How to properly init web3wallet event listeners in React app? #3794

Closed Answered by glitch-txs
ECBSJ asked this question in Developer Support
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by glitch-txs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants