fix(async): handle synchronous initial value in async pipe
Closes #5996
This commit is contained in:
parent
c2ceb7fba4
commit
26e60d658a
|
@ -81,6 +81,7 @@ export class AsyncPipe implements PipeTransform, OnDestroy {
|
||||||
if (isPresent(obj)) {
|
if (isPresent(obj)) {
|
||||||
this._subscribe(obj);
|
this._subscribe(obj);
|
||||||
}
|
}
|
||||||
|
this._latestReturnedValue = this._latestValue;
|
||||||
return this._latestValue;
|
return this._latestValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue