Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug(mat-table): MatTable with observable as data source should trigger change detection after update #24483

Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent area: cdk/table
@preda7or

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:

  1. create component with OnPush change detection strategy
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent area: cdk/table

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /