Open
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
MatTable with an observable as data source does update viewRefs, but does not trigger a detection change (markForCheck).
Which can cause the view not to update (until a change detection is triggered by some other event)
Reproduction
Steps to reproduce:
- create component with OnPush change detection strategy
- create an observable as the data source of material table
https://stackblitz.com/edit/components-issue-5pt19s
Expected Behavior
MatTable with observable as data source should mark itself for checking (markForCheck) when viewRefs were updated.
Actual Behavior
No change detection triggered.
Environment
- Angular: 13.2.4
- CDK/Material: 13.2.4
- Browser(s): Chrome 98.0.4758.102
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10