Skip to content

Commit b412351

Browse files
committed
fix(bare-flow): dynamic link flow not work around in 'source' flow
1 parent 9bd9392 commit b412351

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/app/@dataflow/core/bare-flow.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Observable, of } from 'rxjs';
2-
import { switchMap, take, tap, startWith, distinctUntilChanged, skip } from 'rxjs/operators';
2+
import { switchMap, take, tap, startWith, distinctUntilChanged, skipWhile } from 'rxjs/operators';
33

44
export type DataFlowNode = [object, Error[]];
55

@@ -26,8 +26,9 @@ export abstract class BareFlow {
2626
if (!this.deployed) throw new Error('run deploy before getOutput');
2727
return this.bareData$.pipe(
2828
startWith(this.boostrapData),
29-
distinctUntilChanged(),
30-
skip(1) // don't why need it , otherwise, test failure. refs: https://stackoverflow.com/a/52157317
31-
);
29+
distinctUntilChanged(),
30+
skipWhile((x) => typeof x === 'undefined')
31+
// skip(1), // don't why need it , otherwise, test failure. refs: https://stackoverflow.com/a/52157317
32+
);
3233
}
3334
}

0 commit comments

Comments
 (0)