API Reference > ui-components > Tree > usePagedTreeNodeLoader usePagedTreeNodeLoader Function Beta Custom hook which creates a paging 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. usePagedTreeNodeLoader<TDataProvider extends TreeDataProvider>(dataProvider: TDataProvider, pageSize: number, modelSource: TreeModelSource): PagedTreeNodeLoader<TDataProvider> Parameter Type Description dataProvider TDataProvider pageSize number modelSource TreeModelSource Returns - PagedTreeNodeLoader<TDataProvider> Defined in ui/components/src/ui-components/tree/controlled/TreeHooks.ts Line 55 Last Updated: 12 June, 2024