Lesson 10. Updating recentWinner address in UI without refreshing the page #5935
Mericbey167
started this conversation in
General
Replies: 1 comment
-
Check this #5673 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! I've been struggling with updating recent winner part on UI. There is a section in lesson 10 which says "challenge for you". Those who finished the lesson will remember that Patrick said "when random word request is done we pick a winner and recent winner has been picked. fulfillRandomWords function fires an event called WinnerPicked. You set a listener in order to listen that event and update the UI without us refreshing the website manually". I've been tried a lot but didn't find a solution. I'll put my code here so maybe we can brainstorming together. I do have an error though. Any help will be appreciated :)
LotteryEntrance.jsx
This throws an error that says :
Beta Was this translation helpful? Give feedback.
All reactions