X Tutup
Skip to content

Commit 26e60d6

Browse files
robwormaldalexeagle
authored andcommitted
fix(async): handle synchronous initial value in async pipe
Closes #5996
1 parent c2ceb7f commit 26e60d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/angular2/src/common/pipes/async_pipe.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export class AsyncPipe implements PipeTransform, OnDestroy {
8181
if (isPresent(obj)) {
8282
this._subscribe(obj);
8383
}
84+
this._latestReturnedValue = this._latestValue;
8485
return this._latestValue;
8586
}
8687

0 commit comments

Comments
 (0)
X Tutup