Skip to content

Commit

Permalink
docs(common): describe behavior when reference changes (#42863)
Browse files Browse the repository at this point in the history
PR Close #42863
  • Loading branch information
bit-jkraushaar authored and alxhub committed Oct 28, 2021
1 parent 65cb2c5 commit e3511e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/pipes/async_pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const _subscribableStrategy = new SubscribableStrategy();
* The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has
* emitted. When a new value is emitted, the `async` pipe marks the component to be checked for
* changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid
* potential memory leaks.
* potential memory leaks. When the reference of the expression changes, the `async` pipe
* automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.
*
* @usageNotes
*
Expand Down

0 comments on commit e3511e2

Please sign in to comment.