Skip to content

Commit 407dff6

Browse files
committed
comments
1 parent 3007236 commit 407dff6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/cdk/table/table.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,9 @@ export class CdkTable<T> implements CollectionViewer, OnInit, AfterContentChecke
278278
* Checks for differences in the data since the last diff to perform only the necessary
279279
* changes (add/remove/move rows).
280280
*
281-
* If the table's data source is a DataSource or Observable, this will be invoked each time the
282-
* provided Observable stream emits a new data array. Otherwise if your data is being set
283-
* directly, you will need to call this function whenever data in the provided array is
284-
* added/removed/moved in-place.
281+
* If the table's data source is a DataSource or Observable, this will be invoked automatically
282+
* each time the provided Observable stream emits a new data array. Otherwise if your data is
283+
* an array, this function will need to be called to render any changes.
285284
*/
286285
renderRows() {
287286
const changes = this._dataDiffer.diff(this._data);

0 commit comments

Comments
 (0)