@ethlete/query 3.0.2 → 3.0.4

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.
@@ -877,11 +877,6 @@ class Query {
877
877
  const responseData = isGql && typeof response === 'object' && !!response && 'data' in response
878
878
  ? response['data']
879
879
  : response;
880
- this._state$.next({
881
- type: "SUCCESS" /* QueryStateType.Success */,
882
- response: responseData,
883
- meta: { ...meta, expiresAt: expiresInTimestamp },
884
- });
885
880
  if (this._queryConfig.entity && this._queryConfig.entity.set) {
886
881
  const id = this._queryConfig.entity?.id({ args: this._args, response: responseData });
887
882
  this._queryConfig.entity?.set({
@@ -891,6 +886,11 @@ class Query {
891
886
  store: this._queryConfig.entity.store,
892
887
  });
893
888
  }
889
+ this._state$.next({
890
+ type: "SUCCESS" /* QueryStateType.Success */,
891
+ response: responseData,
892
+ meta: { ...meta, expiresAt: expiresInTimestamp },
893
+ });
894
894
  break;
895
895
  }
896
896
  case 'failure': {