title: How to yield Mobx.autorun to prevent firing in class constructor?
body: <p>In this class I use a initialized bool state to yield the Mobx.autorun execution. Otherwize 'this' is not totally assigned and leads to errors. Is there another/cleaner way to do this?</p>
  
  <pre><code>class GameMaster{
  
    private _initialized:boolean = false;
    private _store:IDomainStore;
    private _moveDisposer:Lambda;
  
    /**
     *
     * @param store - client or server store
     */
      constructor(store:IDomainStore){
          this._store = store;
          console.log(this._store);
          //todo abstract services to decouple client device from GameMaster because it is also used on the server.
          this._moveDisposer = autorun(()=&gt;{
            // prevent firing in the constructor
            if(this._initialized) {
              this.present(
                &lt;IIntent&gt;{
                  fromId: 'GeoLocation.service',
                  toIds: [Meteor.userId()],
                  wish: actions.playerActions.types.CHANGE_PLAYER_GEO_COORDINATES,
                  data: [System.GeolocationService.coordinates.lng, System.GeolocationService.coordinates.lat]
              });
            }
          });
          this._initialized = true;
        }
  
      public present(intent:IIntent):boolean{
        ...
      }
   ...
  }
  </code></pre>
  
  <p>This is my observable in another file:</p>
  
  <pre><code> @observable coordinates = {
      lng:0,
      lat:0
    };
  </code></pre>