@one-paragon/angular-utilities 2.6.6 → 2.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -690,7 +690,7 @@ class RequestStateStore {
690
690
  return this;
691
691
  }
692
692
  onSuccess(cb) {
693
- this.effectOnState('success', cb);
693
+ this.effectOnState('success only', cb);
694
694
  return this;
695
695
  }
696
696
  onSuccessResponse(cb) {
@@ -724,6 +724,10 @@ class RequestStateStore {
724
724
  if (isSuccessState(response))
725
725
  untracked(() => func(response.body, requestParams));
726
726
  break;
727
+ case 'success only':
728
+ if (isSuccessState(response))
729
+ untracked(() => func(response.body));
730
+ break;
727
731
  case 'both':
728
732
  if (isSuccessOrErrorState(response))
729
733
  untracked(() => func());