0
channel.bind('Production_bid_91',function(response){
            console.log(response);


            dataSourceObj[0]['winner_user_name'] = response.winner_user_name;
            console.log(dataSourceObj[0]['winner_user_name']);


            this.state.dataSource = dataSourceObj;

        })

Code this.state.dataSource = dataSourceObj; is undefined...

How to make channel bind can read this object?

Nere
  • 4,097
  • 5
  • 31
  • 71
  • 1
    [How does the "this" keyword work?](//stackoverflow.com/q/3127429) – Tushar Feb 23 '17 at 04:30
  • Quick videos https://egghead.io/lessons/typescript-catch-unsafe-use-of-this-in-typescript-functions / https://egghead.io/lessons/typescript-make-usages-of-this-safe-in-class-methods – basarat Feb 24 '17 at 01:20

0 Answers0