@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.
@@ -2060,6 +2060,7 @@ class ConfigurationStateService {
2060
2060
  this.configurationStore = {};
2061
2061
  this.executionInProgress$ = new BehaviorSubject(false);
2062
2062
  this.statefulRequestStream$ = new Subject();
2063
+ this.statelessExecutionRequest$ = null;
2063
2064
  this.statefulExecutionRequest$ = this.initBufferedRequest$();
2064
2065
  }
2065
2066
  get isExecutionInProgress$() {
@@ -2107,7 +2108,15 @@ class ConfigurationStateService {
2107
2108
  actions: [{ name: actionName, inputData }],
2108
2109
  };
2109
2110
  const request = this.execToRequest(exec);
2110
- return this.executeRequest$(request);
2111
+ const executionRequest$ = this.executeRequest$(request);
2112
+ if (this.isStatefulConfiguration) {
2113
+ return executionRequest$;
2114
+ }
2115
+ // prevent parallel configuration requests in stateless mode
2116
+ if (!this.statelessExecutionRequest$) {
2117
+ this.statelessExecutionRequest$ = executionRequest$.pipe(shareReplay$1(), take$1(1), finalize(() => (this.statelessExecutionRequest$ = null)));
2118
+ }
2119
+ return this.statelessExecutionRequest$;
2111
2120
  }
2112
2121
  select$(selectorName, inputData = {}) {
2113
2122
  const requestId = UUID.UUID();