useTreeModelSource Function
Deprecated in 5.28.0. Use Tree component from @stratakit/structures instead.
Custom hook which creates a TreeModelSource.
useTreeModelSource(dataProvider: TreeDataProvider): TreeModelSource
@note The model source has no direct dependency on the data provider, but we want a fresh model source whenever the data provider changes - that's the reason the hook takes a data provider.
| Parameter | Type | Description |
|---|---|---|
| dataProvider | TreeDataProvider |
Returns - TreeModelSource
Defined in
Last Updated: 24 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.