angular / angular/components

[Table] When predicate should evaluate on each data emit

Open
#9,527 8 comments 18 reactions 0 assignees View on GitHub
area: cdk/table area: material/table P2
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

The table uses the row when predicate to determine which row template to use for a piece of data, but only once when inserting a new row.

This should be evaluated on each emit to confirm that data objects match to the right row template.

https://stackblitz.com/edit/angular-bgzmrf-tbx3dm?file=app%2Ftable-basic-example.ts

Contributor guide

Open the contributing guide

Research direction

Start with the table behavior described in the issue and reproduce it using the linked StackBlitz example, app/table-basic-example.ts. Trace how the row predicate is applied when data is emitted. Done means the predicate is re-evaluated for each emit so data is matched to the correct row template, with the example still working.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.