API Reference > ui-components > Tree > useNodeLoader useNodeLoader Function Beta Custom hook which creates TreeNodeLoader for supplied dataProvider. useNodeLoader<TDataProvider extends TreeDataProvider>(dataProvider: TDataProvider extends TreeDataProvider, modelSource: TreeModelSource): TreeNodeLoader<TDataProvider> Parameter Type Description dataProvider TDataProvider extends TreeDataProvider modelSource TreeModelSource Returns - TreeNodeLoader<TDataProvider> Defined in ui/components/src/ui-components/tree/controlled/TreeHooks.ts Line 37 Last Updated: 13 June, 2024