File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export class Resolvable implements ResolvableLiteral {
46
46
/** This constructor creates a new Resolvable from the plain old [[ResolvableLiteral]] javascript object */
47
47
constructor ( resolvable : ResolvableLiteral )
48
48
49
- /**
49
+ /**
50
50
* This constructor creates a new `Resolvable`
51
51
*
52
52
* @example
@@ -125,8 +125,8 @@ export class Resolvable implements ResolvableLiteral {
125
125
* - Waits for the promise, then return the cached observable (not the first emitted value).
126
126
*/
127
127
const waitForRx = ( observable$ : any ) => {
128
- let cached = observable$ . cache ( ) ;
129
- return cached . toPromise ( ) . then ( ( ) => cached ) ;
128
+ let cached = observable$ . cache ( 1 ) ;
129
+ return cached . take ( 1 ) . toPromise ( ) . then ( ( ) => cached ) ;
130
130
} ;
131
131
132
132
// If the resolve policy is RXWAIT, wait for the observable to emit something. otherwise pass through.
You can’t perform that action at this time.
0 commit comments