docs/_includes/projects/docs/lifecycle/updatecomplete/my-element.js
/**
   * Wait for additional state before completion of every update
   */
Wait for additional state before completion of every update
Wait for additional state before completion of every update
get updateComplete() {
    console.log('Waiting for additional state...');
    return this.getMoreState().then(() => {
      console.log('Additional state.');
      return this._updatePromise;
    });
  }
get updateComplete ( ) { console . log ( 'Waiting for additional state...' ) ; return this . getMoreState ( ) . then ( ( ) => { console . log ( 'Additional state.' ) ; return this . _updatePromise ; } ) ; }
Wait for additional state before completion of every update
Wait for additional state before completion of every update