Replies: 1 comment 2 replies
-
I think this could do the trick, it's some pseudo-code feel free to refine appropriate to your usecase :) |
Beta Was this translation helpful? Give feedback.
2 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 have this contract.on async event wrapped inside of an arrow function. I was using this originally in node js and would like to move it over to react. The console.logs work as expected but I am unsure on how to return these variables and render them into the react component. When the variables are returned as an object, destructured and eventually rendered indiviudally I get back that the first variable in my destructre statement is undefined. I believe I would have to set state somehow outside of the contract.on event but am unsure. Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions