Unable to update state within the contract.on() callback function in React frontend #1719
Unanswered
shahadatksr
asked this question in
Q&A
Replies: 1 comment
-
To verify if this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to listen to an event and update the ui every time there's a new event emitted. The code is working properly and is console logging the temp variable every time. However, the setList() function is not reflecting and the state is not being updated.
Here's the code snippet. How exactly should I go about doing this. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions