nikeshnazareth / verifiable-voting

A verifiable voting system built using Ethereum and IPFS
MIT License
0 stars 0 forks source link

ListVotes components retrieves all contract details every time a new vote is added #4

Closed nikeshnazareth closed 6 years ago

nikeshnazareth commented 6 years ago

When a new VoteCreated event occurs on the VoteListing contract, the ListVotes component is supposed to detect the event, query the blockchain and IPFS for the relevant details, and add a new row to the list. By observing the UI I noticed that when a new vote is added, all vote records revert to the "RETRIEVING..." status, before being filled in again. This suggests that all vote details are requested again every time a new vote is added

nikeshnazareth commented 6 years ago

Also, the view is not updated until the the component is refreshed ( ie. the observable event is not triggering change detection )