usePaginator

Source
import { usePaginator } from "@prestojs/util";
usePaginator<T,PaginatorState>(paginatorClassOrProvider,?currentStatePair)
Params:
ParameterTypeDescription
*paginatorClassOrProvider|
currentStatePair[undefined|PaginatorState, ]
Returns:T
usePaginator<PaginatorState>(paginatorClassOrProvider,?currentStatePair)
Params:
ParameterTypeDescription
*paginatorClassOrProvidernull
currentStatePair[undefined|PaginatorState, ]
Returns:null
usePaginator<T,PaginatorState>(paginatorClassOrProvider,?currentStatePair)
Params:
ParameterTypeDescription
*paginatorClassOrProvidernull||
currentStatePair[undefined|PaginatorState, ]
Returns:T|null