MCPcopy Create free account
hub / github.com/angular/components / columnsDiffReducer

Method columnsDiffReducer

src/cdk/table/table.ts:1188–1193  ·  view source on GitHub ↗
(acc: boolean, def: BaseRowDef)

Source from the content-addressed store, hash-verified

1186 */
1187 private _renderUpdatedColumns(): boolean {
1188 const columnsDiffReducer = (acc: boolean, def: BaseRowDef) => {
1189 // The differ should be run for every column, even if `acc` is already
1190 // true (see #29922)
1191 const diff = !!def.getColumnsDiff();
1192 return acc || diff;
1193 };
1194
1195 // Force re-render data rows if the list of column definitions have changed.
1196 const dataColumnsChanged = this._rowDefs.reduce(columnsDiffReducer, false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected