Skip to content
Discussion options

You must be logged in to vote

ok i was being a moron
basically i thought the listen would await until getting a response, and then it would unlisten, but the await is to setup the listener?
anyway i passed the unlistener to my object and accessed it with thisRef inside handleEvent

i don't know if you're supposed to do it that way, cause there might be some obscure case i'm not thinking about where the function can exit without unlistening but not a huge issue i guess

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Pietagorh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant