angular-cn/packages/common/src
Andrew Scott 49be32c931 refactor(common): remove WrappedValue from AsyncPipe (#36633)
`AsyncPipe` only uses `WrappedValue` when the latest value from the `Promise` or `Observable` is different from the previous one. This is already enough to trigger change detection so the `WrappedValue` is not necessary.

Fixes #29927

BREAKING CHANGE:
This change could result in ExpressionChangedAfterItHasBeenChecked errors that
were not detected before. The error could previously have gone undetected
because two WrappedValues are considered "equal" in all cases for the purposes
of the check, even if their respective unwrapped values are not.

Additionally, `[val]=(observable | async).someProperty` will no longer
trigger change detection if the value of `someProperty` is identical to
the value in the previous emit. If you need to force change detection,
either update the binding to use an object whose reference changes or
subscribe to the observable and call markForCheck as needed.

PR Close #36633
2020-04-30 11:41:49 -07:00
..
directives docs: correct ngSwitch definition (#35489) 2020-04-23 12:13:39 -07:00
i18n fix(common): format day-periods that cross midnight (#36611) 2020-04-16 09:40:40 -07:00
location build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
pipes refactor(common): remove WrappedValue from AsyncPipe (#36633) 2020-04-30 11:41:49 -07:00
common.ts Revert: "feat(ivy): convert [ngStyle] and [ngClass] to use ivy styling bindings" (#34616) 2020-01-24 12:22:44 -08:00
common_module.ts fix(common): remove deprecated support for intl API (#29250) 2019-10-17 20:44:17 -04:00
cookie.ts feat(common): on-by-default XSRF support in HttpClient (#18108) 2017-07-13 17:22:02 -07:00
dom_adapter.ts build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
dom_tokens.ts docs(common): Fixes typo (#33003) 2019-10-10 13:55:40 -07:00
platform_id.ts docs: convert all `@experimental` tags to `@publicApi` tags (#26595) 2018-10-19 14:35:52 -07:00
private_export.ts build: remove unneeded style code for ngClass and ngStyle (#34998) 2020-01-29 14:57:21 -08:00
version.ts docs: common with `@publicApi` tags (#26595) 2018-10-19 14:35:53 -07:00
viewport_scroller.ts build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00