You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
better to prepare your data array using useEffect or custom hook or any other effect fetch library like react query, and your data type in case you are using typescript
feed usePaginator hook with data arry and count of items per page, the generic might not be needed because usePaginator will infer it from your data type
Paginator component needs pagesCount, selectedPage and setSelectedPage, all are returned from usePaginator. Notice if you have your own logic to calculate these props then you don't need usePaginator