Skip to content

Commit 71cdc03

Browse files
committed
feat(cdk/tree): add cache of nodes to the tree
1 parent fffb810 commit 71cdc03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cdk/tree/tree.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ function coerceObservable<T>(data: T | Observable<T>): Observable<T> {
6060
return data;
6161
}
6262

63+
function isNotNullish<T>(val: T | null | undefined): val is T {
64+
return val != null;
65+
}
66+
6367
/**
6468
* CDK tree component that connects with a data source to retrieve data of type `T` and renders
6569
* dataNodes with hierarchy. Updates the dataNodes when new data is provided by the data source.

0 commit comments

Comments
 (0)