Example #1
0
 componentDidMount: function() {
   CoreData.watch('playedTracks', (_1, _2, newValue) => {
     var tracks = newValue;
     this.setState({
       tracks: tracks
     });
   });
 },
Example #2
0
 componentDidMount: function() {
   var self = this;
   CoreData.watch('playedTracks', function(_1, _2, newValue) {
     var tracks = newValue;
     self.setState({
       tracks: tracks
     });
   });
 },