refactor(core): deprecate WrappedValue (#36819)

The purpose of the `WrappedValue` is to allow same object instance to be treated as different for the purposes of change detection. It is currently used with `async` pipe and only with `Observables`. The use case which it covers is if the `Observable` produces the same instance of the value but it is desirable to still try to mark it as changed for the purposes of change detection.

We believe tha the above use case is too rare to warrant special handling in the framework. (Having special handling causes application slowdown for the users and mental load for the developers.) No replacement is planned for this deprecation.

PR Close #36819
This commit is contained in:
Misko Hevery
2020-04-27 10:58:51 -07:00
committed by Alex Rickabaugh
parent ecffc3557f
commit c9e0db55f7
3 changed files with 18 additions and 1 deletions

View File

@ -44,6 +44,7 @@ export function devModeEqual(a: any, b: any): boolean {
* ```
*
* @publicApi
* @deprecated from v10 stop using. (No replacement, deemed unnecessary.)
*/
export class WrappedValue {
/** @deprecated from 5.3, use `unwrap()` instead - will switch to protected */