create account

RE: Write a Steemit Web App: Part 3 - Current Voting Power by money-dreamer

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @jfollas/write-a-steemit-web-app-part-3-current-voting-power

· @money-dreamer ·
To make the refresh add this function to the end where refreshAccountData function was called:

```
        refreshAccountData(vm.user)
        function timeout() {
          refreshAccountData(vm.user,true)
          setTimeout(function () {
            timeout();
          }, 1000);
        }
        timeout()
```

No need to refresh follow(ers/ing) each time:

```
        function refreshAccountData(accountName,refresh=false) {
           ...
              if( ! refresh ) {
                getFollowersList()
                getFollowingList()
                getIgnoredList()
           ...
              }
```
properties (22)
authormoney-dreamer
permlinkre-jfollas-write-a-steemit-web-app-part-3-current-voting-power-20171220t035221799z
categorysteem-dev
json_metadata{"tags":["steem-dev"],"app":"steemit/0.1"}
created2017-12-20 03:52:21
last_update2017-12-20 03:52:21
depth1
children0
last_payout2017-12-27 03:52:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length619
author_reputation4,495,208,779,741
root_title"Write a Steemit Web App: Part 3 - Current Voting Power"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id24,288,913
net_rshares0