@reactables/forms 2.0.0-beta.0 → 2.0.0-beta.2
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RxBuilder } from '@reactables/core';
|
|
2
|
-
import { map,
|
|
2
|
+
import { map, switchMap, catchError, startWith, pairwise, mergeMap, skip, filter } from 'rxjs/operators';
|
|
3
3
|
import { concat, of } from 'rxjs';
|
|
4
4
|
import isEqual from 'lodash.isequal';
|
|
5
5
|
|
|
@@ -207,7 +207,7 @@ var getScopedEffectsForControl = function (formControl, providers) {
|
|
|
207
207
|
return actions$.pipe(map(function (_a) {
|
|
208
208
|
var control = _a.payload;
|
|
209
209
|
return control;
|
|
210
|
-
}), providers.asyncValidators[asyncValidator],
|
|
210
|
+
}), providers.asyncValidators[asyncValidator], switchMap(function (errors$) {
|
|
211
211
|
return concat(of({ type: 'asyncValidation', payload: controlRef }), errors$.pipe(map(function (errors) { return ({
|
|
212
212
|
type: 'asyncValidationResponse',
|
|
213
213
|
payload: {
|