figbird icon indicating copy to clipboard operation
figbird copied to clipboard

Pagination

Open marrouchi opened this issue 3 years ago • 0 comments

Hello,

I want to thank you first for this awsome library. We are having some trouble dealing with pagination when using useFind(). We would want to have a "load more" behavior, so that each time we would increase the limit. As it seems that useFind() will re-fetch the data from the begining. Adding a "$skip" parameter would not give us the data from the start.

Any idea how to deal with this plz ?

Also I noticed that feathers returns the data in the "meta" attribute in useFind.tsx finder() function and sort of does the fetchNext() recursively, so I guess it should be like this right :

result.limit = res.meta.limit
result.total = res.meta.total

marrouchi avatar Feb 09 '22 13:02 marrouchi