code: function setLoading(value) {
        if (self.loading !== value) {
          self.loading = value;
        }
  
        // Always refresh the hidden variable as something else might have changed
        self.hidden = shouldHide();
      }
docs: Sets the loading parameter and updates the hidden state.
  @param value {boolean} Whether or not the component is currently loading.