useTreeNodeLoader Function

Deprecated  in 5.28.0. Use Tree component from @stratakit/structures instead.

Custom hook which creates a nodes' loader using the supplied data provider and model source. The loader pulls nodes from the data provider and puts them into the model source.

useTreeNodeLoader<TDataProvider extends TreeDataProvider>(dataProvider: TDataProvider, modelSource: TreeModelSource): TreeNodeLoader<TDataProvider>

Parameter Type Description
dataProvider TDataProvider  
modelSource TreeModelSource  

Returns - TreeNodeLoader<TDataProvider>

Defined in

Last Updated: 24 April, 2026