usePaginator

Source
import { usePaginator } from "@prestojs/util";
usePaginator<T,PaginatorState>(paginatorClassOrProvider,?currentStatePair)

Arguments:

ArgumentTypeDescription
*paginatorClassOrProvider|
currentStatePair[undefined|PaginatorState, ]
Returns:T
usePaginator<PaginatorState>(paginatorClassOrProvider,?currentStatePair)

Arguments:

ArgumentTypeDescription
*paginatorClassOrProvidernull
currentStatePair[undefined|PaginatorState, ]
Returns:null
usePaginator<T,PaginatorState>(paginatorClassOrProvider,?currentStatePair)

Arguments:

ArgumentTypeDescription
*paginatorClassOrProvidernull||
currentStatePair[undefined|PaginatorState, ]
Returns:T|null