@veloceapps/sdk 10.0.0-5 → 10.0.0-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.
@@ -2089,6 +2089,7 @@ class ConfigurationStateService {
2089
2089
  this.configurationStore = {};
2090
2090
  this.executionInProgress$ = new BehaviorSubject(false);
2091
2091
  this.statefulRequestStream$ = new Subject();
2092
+ this.statelessExecutionRequest$ = null;
2092
2093
  this.statefulExecutionRequest$ = this.initBufferedRequest$();
2093
2094
  }
2094
2095
  get isExecutionInProgress$() {
@@ -2135,7 +2136,15 @@ class ConfigurationStateService {
2135
2136
  actions: [{ name: actionName, inputData }],
2136
2137
  };
2137
2138
  const request = this.execToRequest(exec);
2138
- return this.executeRequest$(request);
2139
+ const executionRequest$ = this.executeRequest$(request);
2140
+ if (this.isStatefulConfiguration) {
2141
+ return executionRequest$;
2142
+ }
2143
+ // prevent parallel configuration requests in stateless mode
2144
+ if (!this.statelessExecutionRequest$) {
2145
+ this.statelessExecutionRequest$ = executionRequest$.pipe(shareReplay$1(), take$1(1), finalize(() => (this.statelessExecutionRequest$ = null)));
2146
+ }
2147
+ return this.statelessExecutionRequest$;
2139
2148
  }
2140
2149
  select$(selectorName, inputData = {}) {
2141
2150
  const requestId = UUID.UUID();