facebookarchive / react-meteor

React rendering for Meteor apps
948 stars 113 forks source link

Make sure getMeteorState is only ever called within Deps.autoRun #13

Closed benjamn closed 9 years ago

benjamn commented 10 years ago

Right now componentWillReceiveProps calls this._handleMeteorChange() which might call this.getMeteorState() outside of Deps.autoRun.

Spendar89 commented 10 years ago

@benjamn Deps.active is only true when called from within Deps.autorun.